ID:152950
Jun 18 2005, 5:14 am
|
|
I hate the way BYOND uses Scientific Notation when you have numbers 7 or more digits. Thats why I made a proc to convert all numbers to text so it wouldnt do that. But its kinda hard to tell how much you have at a glance if its a large number. I need a way to input commas into the text. Any suggestions?
|
Jun 18 2005, 5:35 am
|
|
In response to Crashed
|
|
Here's my take on it (slightly cleaner IMO). This one assumes you've already converted to text:
proc/commas(T) Has been tested, and works fine. Edit: Now supports decimal numbers and negative numbers. Commas are not added to the decimal portion. |
In response to Crispy
|
|
Test it with -100.23 :)
|
In response to Theodis
|
|
Bah, I forgot about decimals. =P
In my defence, Crashed did too... Anyway, I'll fix that. |