You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//var a = -1.1230000;
|
|
//var a = 0.0000009999999;
|
|
//var a = 1.000000000;
|
|
//var a = -4.55555;
|
|
//var a = 5.0001000;
|
|
var a = 1.1234000;
|
|
|
|
|
|
var result = parseFloat(a.toFixed(4));
|
|
console.log(result);
|