Skip to content

Conversation

utk09-NCL
Copy link

Fixes #407

Problem: 4.1M displayed as £NaN.1 due to JS floating-point precision errors.

Solution:

  • Created safeMultiply utility using integer arithmetic
  • Fixed parseAbbrValue and cleanValue to use safe multiplication
  • Added comprehensive test coverage

Result: 4.1M now correctly displays as £4,100,000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JS floating point precision issue: 4.1M returns NaN.1

1 participant