I have a number with an extreme amount of decimal places.
1.5583255870000002e+36
I’m struggling to find a good way to round this down to 2 decimal places using JavaScript.
I’ve tried a few variations using parseFloat()
Math.round()
and .toFixed()
.
Do I need to use Math.js?
Any other tips?
Thanks,