Skip to content
semmons99 edited this page Nov 10, 2012 · 9 revisions

This library aids one in handling money and different currencies.

Features

  • Provides a Money class which encapsulates all information about an certain amount of money, such as its value and its currency.
  • Represents monetary values as integers, in cents. This avoids floating point rounding errors.
  • Provides APIs for exchanging money from one currency to another.
  • Has the ability to parse a money string into a Money object.

Resources

Rails Tutorials

To integrate money in a Rails application use the money-rails gem, or follow one of these alternative tutorials.