110
rated 0 times
[
114]
[
4]
/ answers: 1 / hits: 62780
/ 10 Years ago, tue, july 15, 2014, 12:00:00
Is there a way to get number.toLocaleString()
with 4 digits after the comma?
Example:
var number = 49.9712;
document.getElementById('id').innerText = number.toLocaleString();
Result:
49,9712
But now it always returns number with 2 digits after comma:
49,97
More From » numbers