by Cowdude
Change "115" into "One Hundred Fifteen"! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Cowdude.Num2Word##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Latest Version
Date added: Nov 4 2006
Last updated: Jun 30 2009
0 fans
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