oh, that's clever - the "0" with the slice(-2). PS `~~num`===`Math.floor(num)` if you want some more trickery.

I'm not following this `Math.floor (num - Math.floor(num))*100` bit though. Why doesn't `num.toFixed(2)` work, and what does your change do instead?