toFixed(fractionDigits)

Convert a number to a fixed decimal number. The fractionDigits specifies the number of digits following the decimal point.

Example

(1/3).toFixed(2);

<< toString([radix]) © 1996-2013 InetSoft Technology Corporation (v11.5) toexponential(fractionDigits) >>