Converts numbers including decimal values to words
npm install decimal-number-to-wordscmd
npm install decimal-number-to-words
`
How to use
##### toOrdinal(number)
> Converts an integer into a string with an ordinal postfix.
`js
var convert = require('decimal-number-to-words');
convert.toOrdinal(21); // => “21st”
`
##### toWords(number)
> Converts a number into words.
`js
var convert = require('decimal-number-to-words');
convert.toWords(13); // => “thirteen”
// Decimal numbers:
convert.toWords(2.9); // => “two point nine”
// Negative numbers:
convert.toWords(-3); // => “minus three”
// Large numbers:
convert.toWords(9007199254740992); // => “nine quadrillion, seven trillion, one hundred ninety-nine billion, two hundred fifty-four million, seven hundred forty thousand, nine hundred ninety-two”
`
##### toWordsOrdinal(number)
> Converts a number into ordinal words.
`js
var convert = require('decimal-number-to-words');
convert.toWordsOrdinal(21); // => “twenty-first”
``