Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
numObj.toPrecision ([precision])
For numbers in exponential notation, precision - 1 digits are returned after the decimal point. For numbers in fixed notation, precision significant digits are returned.
If precision is not supplied or is undefined, the toString method is called instead.
toFixed Method | toExponential Method
Applies To: Number Object