React Number2words
React component to convert number into words.
Demo
https://sprajwal078.github.io/react-number2words-demo/
Installation
npm install react-number2words
Usage
;
Then in your react app you can use
Examples
Default
will output
fourteen billion six hundred million seven hundred twenty eight thousand one hundred ninety five
Decimal Value
will output
twelve point three two
Hindu-Arabic System
will output
two kharab thirty five arab sixty seven crore eighty nine lakh forty three thousand two hundred twenty six
Hindu Arabic - Language Support
Currently only Nepali language is supported. This is because Nepali is my native language and I am familiar with the Nepalese writing and number system. Please feel free to contrubute to this project to support a language of your choice or provide me some info by creating a feature request in the issues section.
will output
चौध अर्ब साठ्ठी करोड सात लाख अठ्ठाइस हजार एक सय पन्चान्नब्बे
Decimal Input
will output
छब्बीस दशमलब पाँच चार
TODO
- Enable support additional languages
- Enable currency conversion