xInfo::getNumberOfDecimals Method [AX 2012]

Retrieves the number of decimal places in the specified number.

client server public static int getNumberOfDecimals(real number)

Run On

ClientOrServer

Parameters

number
Type: real
A real number.

Return Value

Type: int
The number of decimal places in the number parameter.
Show: