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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top