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
- bojanvelevski4 years agoValued Contributor
I must disagree. Look at the following sample:
Related Content
- 2 years ago
- 9 months ago
- 4 years ago
- 2 years ago