Returns the precision of a number

Parameters

value Number (required) - a number

Returns

Number - the number of decimal places

Examples

PRECISION(1.333)

// returns 3
PRECISION(1.3)

// returns 1
PRECISION(1)

// returns 0