Get the name of a number, even if it's stupidly big.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.

123456789101112131415161718192021222324252627282930313233343536
  1. # number-name
  2. Converts a number into its name.
  3. [See the demo here.](https://Temoto-kun.github.io/number-name)
  4. ## Why?
  5. Inspired by [number-to-words](https://www.npmjs.com/package/number-to-words). Thinking I could improve on the code to include
  6. [big integers](https://www.npmjs.com/package/big-integer), I looked for some info and found [Landon Curt Noll's Web page describing
  7. the reconstructed English naming system of numbers](http://www.isthe.com/chongo/tech/math/number/howhigh.html). I decided to port
  8. his [Perl script](http://www.isthe.com/chongo/tech/math/number/number) into JavaScript.
  9. ## Installation
  10. Install via Yarn:
  11. ```shell script
  12. yarn add @theoryofnekomata/number-name
  13. ```
  14. ## TODO
  15. - [ ] Implement stream support
  16. - [ ] Implement `BigInt` support
  17. - [ ] Fully localizable number systems (e.g. custom rules for combining fragments of number words)
  18. - [ ] Optimizations for fractions.
  19. - [ ] Implement other `fractionType`s, (only `lazy` (digits) is supported as of 0.2.0, e.g. `0.05` => `zero point zero five`,
  20. will implement `ratio` (`zero and five over one hundred`) and `part` (`zero and five hundredths`))
  21. - [ ] Upon adding more features, update the unit tests as well.
  22. Please star the repo if you find it useful in your projects.
  23. ## License
  24. MIT. See [LICENSE file](./LICENSE) for details.