Commit Graph

6 Commits

Author SHA1 Message Date
rovdyl
638afd8995 reorganize namespacing
specify eng-us region and make room for future ordinal conversion
2019-02-06 17:58:43 -06:00
rovdyl
1f2a2a5402 simplify handling unsupported numbers
Removes the usage of ++need, and therefore any possibility of
accidentally crashing, by performing the check of unsupported numbers
before anything else.

Idea originally suggested by @philipcmonk
https://github.com/urbit/arvo/pull/1053#issuecomment-460814835
2019-02-05 21:55:40 -06:00
rovdyl
acd9ef133c auto-determine num-break separator
If the remainder is less than 100, use " and ", otherwise use ", ". This
is not only simpler, but corrects numbers like "one million, one" to be
"one million and one".
2019-02-05 20:29:45 -06:00
rovdyl
b72f76ea4f correct "fourty" to "forty" 2019-02-05 20:29:19 -06:00
rovdyl
f53565087a improve code quality 2019-02-05 18:49:05 -06:00
rovdyl
dcdddaf453 added lib/number-to-words 2019-02-04 16:28:45 -06:00