See: http://github.com/kstephens/currency
The rubygems package currency
implements an object-oriented representation of currencies, monetary values, foreign exchanges and rates.
Currency::Money uses a scaled integer representation of the monetary value and performs accurate conversions from string values.