138
rated 0 times
[
144]
[
6]
/ answers: 1 / hits: 19249
/ 9 Years ago, wed, august 26, 2015, 12:00:00
With .toFixed(2)
I always get 2 decimals, even if the number is 2.00
Can I get 2 instead?
Example:
- 2.00 => 2
- 2.05 => 2.05
- 2.053435 => 2.05
- 2.057435 => 2.06
More From » math