Skip to content

siman-man/yen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yen

数値を日本語表記に変換するgemです。Integerのみ使用できます。対応している桁数は倶胝までです。

Installation

install it yourself as:

$ gem install yen

Usage

require 'yen'

10000.to_j                  #=> 1万
10000.to_j(:all)            #=> 一万

370060178930.to_j           #=> 3700億6017万8930
370060178930.to_j(:all)     #=> 三千七百億六千十七万八千九百三十

10000.to_yen                #=> 1万円
10000.to_yen(:all)          #=> 一万円

TODO: Write usage instructions here

Contributing

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

About

Integer to japanese yen in ruby

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages