- The
Money#dollarsandMoney#amountmethods now return instances ofBigDecimalrather thanFloat. We should avoid representing monetary values with floating point types so to avoid a whole class of errors relating to lack of precision. There are two migration options for this change:- The first is to test your application and where applicable update the
application to accept a
BigDecimalreturn value. This is the recommended path. - The second is to migrate from the
#amountand#dollarsmethods to use the#to_fmethod instead. This option should only be used whereFloatis the desired type and nothing else will do for your application's requirements.
- The first is to test your application and where applicable update the
application to accept a