1.0.2 • Published 9 years ago
num2word v1.0.2
node-num2Word
Convert a number to an English word representation
$ npm install num2word
Large numbers, e.g. Number.MAX_SAFE_INTEGER and beyond, need to be passed as a string.
console.log(num2Word("9007199254740992"));
//nine quadrillion seven trillion one hundred ninety-nine billion two hundred fifty-four million seven hundred forty thousand nine hundred ninety-two
Numbers can go as high as the hundreds of centillions (306 digits), but no further. And smaller numbers, e.g. Number.MIN_VALUE and below, are treated as zero.