string.format

M

mark

to convert to currency its straightforward
string.format("{0:c},int(mystring) eg 12345.57 would be £12,345.57
how do i format the string to just show £12,345 (eg dont show anything after
the decimal point)
ive used string.format("£{0:d},mystring) but it loses the commas

cheers

mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top