Closed olunusib closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
aca7663
) 91.43% compared to head (e89a6c9
) 91.44%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes #928
Problem:
The current code was primarily designed for numbers like
3,400.00
, where the r-stripped value (3,400.
) matches the expectedproper
(3,400
) +.
(3,400.
) format. It doesn't work for numbers like3,400.60
since3,400.6
(the value after r-stripping) is incorrectly perceived as not equal to the expected format, which is theproper
(3,400.6
) +.
(3,400.6.
), thereby leading to its erroneous detection as improperly formatted.Solution:
Added a more robust method for stripping trailing zeros, specifically targeting only those zeros that appear after the last non-zero digit following the decimal symbol.