globalize icon indicating copy to clipboard operation
globalize copied to clipboard

Number rounding still have problems with inaccurate floating point arithmetic

Open DokaRus opened this issue 6 years ago • 1 comments

@rxaviers looks like #386 only solves the problem for positive numbers.

Globalizejs v.1.4.2 image

Related issues or PRs: #386 #856

DokaRus avatar Jan 10 '20 10:01 DokaRus

The problem fixed by #386 is related to inaccurate floating point arithmetics, which doesn't happen here. The results posted here are correct. Note you can change the rounding mode if needed via options.round.

rxaviers avatar Jan 10 '20 12:01 rxaviers