Hi,
Does anyone now how i can format a number to only show decimal places if needed?
For instance...
string.format("{0:SomeFormat}", 26.9) = "26.9"
and...
string.format("{0:SomeFormat}", 26.0) = "26" 'Drop decimal for whole numbers
Thanks,
Joel
Does anyone now how i can format a number to only show decimal places if needed?
For instance...
string.format("{0:SomeFormat}", 26.9) = "26.9"
and...
string.format("{0:SomeFormat}", 26.0) = "26" 'Drop decimal for whole numbers
Thanks,
Joel