Solution
Challenges » Solution
![]() |
Name: Number to word, yo. Author: Edward Hou Download: NUMWORD.8xp Compatibility: Parent page not set File Size: 934 bytes |
Returns any positive real number in English. |
Want to update this page?
- Upload new files to provide up-to-date versions of your program;
- or Edit the content of this page to provide up-to-date information about your program.
A moderator will only process these changes if you add the word update to the list of tags
What the community thinks:
The longest program, taking 2 seconds to complete it's longest number. However; this program was by far the smallest, taking up only 927 bytes (not including the program name), which beat patriotsfan by 411 bytes and Timothy Foster by 571 bytes!
This program displayed it's solution without any word-wrapping — which is probably why it is so much smaller than the other two programs. But the horrible zero! Zero is just as important as any other number, and it's a shame that it was forgotten in this challenge.
Ah, but he says that it returns the value of any positive number, and technically, 0 is not a positive number. It's neither positive nor negative. Therefore, it need not be a part of this program. Should be simple to add 'zero' though, but the description does not lie.
lol!!!
however, putting a simple code would be easy:
yes, it's pseudocode!!!
@james kanjo
how do you do the thing at the bottom of every post? is it automatic?
@ RandomProductions: His program description says that, but the criteria does (indirectly) suggest that zero must be catered for:
This means you don't need to cater for numbers less than zero.
@graphmastur: The signature is automatic — Unfortunately it is only available to "pro-wikidot" accounts. I am one of the current beta testers for the upcoming pro-accounts, which is why I am able to do that. You probably noticed that star next to my avatar? That is the symbol for "pro status". Wikidot will be launching the pro accounts soon though.
Or you could do what I do (for the time being) and put the code somewhere and copy and paste after every post. That's what I do.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
how do I become a pro?
Dang, I should have submitted my longer one. My previous version supported all real numbers with magnitudes less than 1 quintillion. The one I submitted, I took off about 100 or 200 bytes by dropping the negatives and various other optimizations, but apparently I forgot to code the zero case :D.