The project is in a healthy, maintained state
Convert number in chinese character, including chinese character aliases, to number.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.13.0
 Project Readme

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.