Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

toFixed Method

Returns a string representing a number in fixed-point notation.

function toFixed( [fractionDigits : Number] ) : String

fractionDigits

Optional. Number of digits after the decimal point. Must be in the range 0 – 20, inclusive.

The toFixed method returns a string representation of a number in fixed-point notation. The string contains one digit before the significand's decimal point, and must contain fractionDigits digits after it.

If fractionDigits is not supplied or undefined, the toFixed method assumes the value is zero.

Community Additions

ADD
Show:
© 2015 Microsoft