0.2.2 • Published 8 years ago
english_numbers v0.2.2
The main function is:
exports.numberToEnglish = function(number, millionComma, hyphenated, aNotOne)
arguments
number
This is the integer in need of being converted to english.
millionComma
This specifies whether to place a comma after the million word, i.e a million, three hundred thousand
hyphenated
Whether to hyphenate numbers in the range 21-99, i.e twenty-one instead of twenty one.
aNotOne
When numbers start with a 1, whether to generate an English string that begins with 'a' instead of 'one', i.e 'a hundred and ten' as opposed to 'one hundred and ten'.