Javascript ToPrecision() Function

The toPrecision() function of number object is return number of total digits to be display. Use it for example to get display total digits.

Syntax

Javascript ToPrecision() Function Example