Project

yen

0.0
No commit activity in last 3 years
No release in over 3 years
this is convert integer to yen
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
 Project Readme

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