Project

cashish

0.0
No commit activity in last 3 years
No release in over 3 years
Currency Handling done simple
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
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"