$int

Return the integer part of X.

$int(X)

Parameters

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

Return Values

Calculated value.

Use

Allowed in all component types.

Using $int

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

vInt = $int(ANUMBER / 1000)

If the value of ANUMBER is 3456, the value stored in $intpart$ is 3.

Related Topics