Skip to content

thought-sauce/cashish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cashish
=======

Storing Currency as Integers
Cashish (will) make it easy to display this with the right number of decimal places.
As well as creating a simple "Amount" object you can perform arithmetic on.

Example
=======

    gbp = Cashish::Amount.new(1_000_000_00, "GBP")
    
    gbp.to_s
    => "1,000,000.00 GBP"
    
    gbp.to_f
    => 1_000_000.00
    
    gbp.to_s(:simple)
    => "1000000.00"
    
    

About

Simple Currency handling in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages