How to get commas in integer value?
Portyman
Member, PRO Posts: 409
I have an integer score counter and i want to show it as a normal number with commas. Right now is shows up as a long number with no commas. (
Ie. 54656564 ---- I want 54,656,564
Also, i would like to add a dollar sign to the front of the integer. I cant seem to figure that out either.
Thanks
Ie. 54656564 ---- I want 54,656,564
Also, i would like to add a dollar sign to the front of the integer. I cant seem to figure that out either.
Thanks
Comments
http://gamesalad.com/forums/topic.php?id=4613&replies=2#post-28228
As for adding a dollar sign, concatenation in GS is handled with a double-dot (period) operator:
'$'..'1,000'
But it handles leading zeroes and/or blanks in odd ways so you have to mess around with trial-n-error tests.