I am getting weird result with javascript on browser.
9.95 * 100
It returns 994.9999999999
instead of 995
. How can I get 995 as expected?
Is floating point math broken? only explains why, and no solution for workaround.
I am getting weird result with javascript on browser.
9.95 * 100
It returns 994.9999999999
instead of 995
. How can I get 995 as expected?
Is floating point math broken? only explains why, and no solution for workaround.