Floating points are awesome!
remiolsen opened this issue · comments
Math.round(0.58*100);
or
(0.58*100).toFixed(0);
Also, python :
>>> 0.58*100
57.99999999999999
Easier than that in this case - offending number is in a HighCharts label which supports string formatting. So just a case of changing {y}
to {y:,.0f}
. Already done and about to commit.