Shopify/money

Multiplying money by decimals loses pennies

mgingras opened this issue · 0 comments

When multiplying money by decimals there is a loss in precision and should probably be treated similarly to division

some_money = Money.new(2.34, 'USD')
some_money * 0.05 + some_money * 0.08  # <Money value:0.31 currency:USD>
some_money * 0.13  # <Money value:0.30 currency:USD>