0.0
No release in over 3 years
Low commit activity in last 3 years
The tool spells out numbers (amounts) in words. It supports serbian language.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 4.1
~> 3.1
 Project Readme

trange_frange

Gem Version Code Climate

The tool spells out numbers (amounts) in words. It supports serbian language and amounts up to 999 bilions.

12345.67 => 'dvanaest hiljada tri stotine četrdeset pet i 67/100'

Install

$ gem install trange_frange

Examples

require 'trange_frange'
amount = TrangeFrange::Amount.new(16345.67)
amount.spell!
=> "šesnaest hiljada tri stotine četrdeset pet"

including a fraction

amount.spell! show_fraction: true
=> 'šesnaest hiljada tri stotine četrdeset pet i 67/100'

disabling spacing between words

amount.spell! squeeze: true
=> 'šesnaesthiljadatristotinečetrdesetpet'

disabling accented lating characters

amount.spell! bald: true
=> 'sesnaest hiljada tri stotine cetrdeset pet'

combined options

amount.spell! show_fraction: true, squeeze: true, bald: true
=> 'sesnaesthiljadatristotinecetrdesetpet i 67/100'

Copyright

Copyright (c) 2014 Nino Milenovic

See LICENSE.txt for details.