$frac

Return the fractional part of X.

$frac(X)

Parameters

X—a numeric constant, or a field (or indirect reference to a field), variable, function, or expression that evaluates to a numeric value.

Return Values

Fractional part of X.

If an error occurs, $procerror contains a negative value that identifies the exact error.

Use

Allowed in all component types.

Using $frac

The following example returns the fractional part of the given expression:

vFraction = $frac(ANUMBER / 100)

If the value of ANUMBER is 234, the result stored in vFraction is 0.34.

Related Topics