I met a issue about number calculation in JavaScript, the scenario is listed as
below.
var number = 572.055
var result = Math.round(572.055*100)/100
I would like to get result 572.06
, but the result is 572.05
, i try that
alert(572.055*100)
, it alert the value 57205.4999999999
,i don't know
the reason. could you help to tell me
how to avoid this issue? thanks a lot!