Number.prototype.toPrecision()
function FormatMeTo12Digits(num) {
return num.toPrecision(12);
}
FormatMeTo12Digits(12.345);
solved How to return the value in total of 12 digits?
Number.prototype.toPrecision()
function FormatMeTo12Digits(num) {
return num.toPrecision(12);
}
FormatMeTo12Digits(12.345);
solved How to return the value in total of 12 digits?