contents   index   previous   next



Number toPrecision()

syntax:

number.toPrecision(precision)

where:

precision - significant digits in fixed notation, or digits after the significand's decimal point in exponential notation.

 

return:

string - A string representation of this number in either exponential notation or in fixed notation.

 

description:

This method returns a string containing the number represented in either in exponential notation with one digit before the significand's decimal point and precision-1 digits after the significand's decimal point or in fixed notation with precision significant digits.

 

 


Number toString()