Forum Discussion
bojanvelevski
5 years agoValued Contributor
Hi @manohar,
You can use the “.toPrecision()” method, where you can add an argument on how may digits you want in your number. Example:
parseFloat(44.55).toPrecision(6) gives you :
I hope this helps,
Regards
Bojan
manohar
5 years agoContributor