This library (made by Cow so it's perfect) will turn any number between -10 million and 10 million to text, so that 591,214 becomes Five Hundred Ninety One Thousand Two Hundred Fourteen.
Changing the number format, such as changing "Ninety One" to "Ninety-One", probably isn't that difficult if it makes it easier to read. It won't covert numbers over +/- 10 mil because no formatting in the world would help that :O and Byond kept rounding the numbers when they had too many significant digits =( but oh well.
I can't think of too many examples of where you'd use this. I made it to do convert the result of dice rolls because pick("One","Two","Three","Four","Five","Six") wasn't extravagant enough for me, but I probably use it for something else.
"Wow! That totally changed my life!" - Spade489
ID:128854
Nov 4 2006, 10:00 pm
|
|