TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'number_to_cn'
And then execute:
$ bundle
Or install it yourself as:
$ gem install number_to_cn
so simple to use:
require 'number_to_cn'
123.to_cn_words #=> 壹佰贰拾叁
123.to_cn_clearly #=> 壹贰叁
0.1.to_cn_words #=> 零点壹
0.to_cn_words #=> 零
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request ======= number_to_cn ============
transfer number into chinese characters
6447d6a2f58a576d6d94a6ed5896b33cf1a43204