ChineseNumberConverter
Can chinese number be converted into number? Yep, you've come to the right place! This is an easy tool for you to convert chinese number into number, for example
ChineseNumberConverter.convert_to_number('三百六十五')
#=> 365
Installation
Add gem to Gemfile.
gem 'chinese_number_converter'
Run bundle install
.
Usage
Nothing fancy here, just copy and paste the following command, and you're done!
ChineseNumberConverter.convert_to_number('兩兆三千六百八十億七千一百二十')
#=> 2368000007120
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/alanyeh20001/chinese_number_converter.
License
The gem is available as open source under the terms of the MIT License.