[Awesome Ruby Gem] Use digital_capital gem to convert China Yuan from Arabic numerals into Chinese uppercase
digital_capital
Currency uppercase amount conversion/RMB uppercase conversion (Convert Arabic numerals into Chinese uppercase, RMB uppercase conversion)
Installation
You can install it as a gem:
1 | gem install digital_capital |
or add it into a Gemfile (Bundler):
1 | # Gemfile |
Then, run bundle install
.
1 | bundle install |
Usage
1 | DigitalCapital.cb(199499499.922) # => "壹亿玖仟玖佰肆拾玖万玖仟肆佰玖拾玖元玖角贰分贰厘" |
References
[2] digital_capital | RubyGems.org | your community gem host - https://rubygems.org/gems/digital_capital