English ordinal from any integer
npm install integer-to-ordinal-englishEnglish ordinals from any integer
```
npm install --save integer-to-ordinal-english
Import the package
`node`
const ordinal = require("integer-to-ordinal-english");
Pass in either an integer.
`node`
ordinal(127521);
// => "One Hundred and Twenty-Seven Thousand, Five Hundred and Twenty-First"
Or a cardinal number (like the output from Integer to Cardinal).
`node``
ordinal("One Hundred and Twenty-Seven Thousand, Five Hundred and Twenty-One");
// => "One Hundred and Twenty-Seven Thousand, Five Hundred and Twenty-First"
Vocabulary is currently limited to
999,999,999,999,999
That is, the library does not currently support one quadrillion or higher.
Higher numbers are easily supported. If you need it, please don't be shy and
open up a pull request!
Number Reference is an online encyclopedia
of calculations that relies heavily on this and related packages.
Nice and Brief: BSD-3-Clause