Number.toPrecision

Number toPrecision (Number decimals)

Parameters

decimals The number of decimals.

Description

Converts the Number object to a string in either scientific or fixed notation, epending on its value.