Javascript ToFixed() Function

The toFixed() function of number object to fixed number of digits to the right of the decimal. Use it for example to get display number of digit after decimal point.

Syntax

Javascript ToFixed() Function Example