%DECPOS (Get Number of Decimal Positions)
%DECPOS(numeric expression)
%DECPOS returns the number of decimal positions of the numeric variable or expression. The value returned is a constant, and so may participate in constant folding.
The numeric expression must not be a float variable or expression.
See Figure 1 for an example of %DECPOS with %LEN.
For more information, see Size Operations or Built-in Functions.