Big numbers like 123_456_789_123_456_789_123_456_789_123_456_789 suffer from float rounding errors due to the way the conversion in Money.to_string is implemented.
This PR aims to avoid such problems by performing the initial conversion and split using Integer and String functions only.
The following example (included in the new assertions I added) shows the bug.
Big numbers like
123_456_789_123_456_789_123_456_789_123_456_789
suffer from float rounding errors due to the way the conversion inMoney.to_string
is implemented.This PR aims to avoid such problems by performing the initial conversion and split using Integer and String functions only.
The following example (included in the new assertions I added) shows the bug.