Putting commas in correct places on a number
Posted: Fri Mar 10, 2006 11:12 am
Hey I'm looking for something simple to display a number with commas seperating millions, billions, hundred thousands etc.
So lets say I had:
I want it to display
or
to
I don't want to have to change how long the number is, like when its a billion i dont want to have to specify that its at a billion. I hope this explains what I want the script to do.
Can anyone help out?
So lets say I had:
Code: Select all
1248290Code: Select all
1,248,290Code: Select all
24920391394Code: Select all
24,920,391,394I don't want to have to change how long the number is, like when its a billion i dont want to have to specify that its at a billion. I hope this explains what I want the script to do.
Can anyone help out?