NumberToCn

TODO: Write a gem description

Installation

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

Usage

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 #=> 零

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)

5. Create new Pull Request

number_to_cn

transfer number into chinese characters

6447d6a2f58a576d6d94a6ed5896b33cf1a43204