Skip to content

Commit 3ced85d

Browse files
committed
Fix Float precision error.
1 parent 18c9581 commit 3ced85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rails_application/app/processes/processes/invoices/money_splitter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Processes
22
module Invoices
33
class MoneySplitter
44
def initialize(amount, quantity)
5-
@amount = BigDecimal(amount)
5+
@amount = BigDecimal(amount.to_s)
66
@weights = Array.new(quantity, 1)
77
end
88

0 commit comments

Comments
 (0)