Get the name of a number, even if it's stupidly big.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

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. - [X] Implement stream support
  16. - [X] Implement `BigInt` support
  17. - [X] Fully localizable number systems (e.g. custom rules for combining fragments of number words)
  18. - [ ] Exponential syntax support
  19. - [ ] Optimizations for fractions
  20. - [ ] Implement other `fractionType`s, (only `lazy` (digits) is supported as of 0.2.0, e.g. `0.05` => `zero point zero five`,
  21. will implement `ratio` (`zero and five over one hundred`) and `part` (`zero and five hundredths`))
  22. Please star the repo if you find it useful in your projects.
  23. ## License
  24. MIT. See [LICENSE file](./LICENSE) for details.