Home > Article > Web Front-end > JavaScript Study Notes (4) Number Number Type_Basic Knowledge
toFixed() method specifies the number of decimal places
toExponential() method uses scientific notation to express the number, and the parameter specifies the number of decimal places
toPrecision() method automatically determines whether to call the toFixed() or toExponential() method, and the parameter specifies The number of digits in all numbers