I have this number : -0.0166667 and I would like to get only two floating digits, so the number should be -0.01
I tried this
-0.0166667.toFixed(2) # gives : -0.02
and also this
Math.round(-0.0166667 * 100) / 100 # also gives : -0.02
But both of them transform the number to -0.02 instead of -0.01
What's wrong here ?