Possible duplicate:
Is math javascript broken?
I am calculating the sum of several float values ββusing javascript and ... I noticed a strange thing that was not seen before. The execution of this code is:
parseFloat('2.3') + parseFloat('2.4')
I get 4.69999999999999999
So ... what can I do to get the right value? (assuming this is not true ...)
javascript math floating-point
davioooh Sep 20 2018-12-12T00: 00Z
source share