%INT built-in function converts the value of the numeric expression to integer.
%INT (NumericExpression)
Required. The numeric expression to convert.
Any decimal digits are truncated. This built-in function may only be used in expressions. %INT can be used to truncate the decimal positions from a float or decimal value allowing it to be used as an array index.
BEGSR Int_Ex
DclFld Name( A
) Type( *ZONED ) Len( 7,3 )
DclFld Name( B ) Type( *ZONED ) Len(
7,5 )
DclFld Name( C ) Type( *ZONED ) Len(
7,3 )
DclFld Name( Result1 ) Type( *ZONED ) Len( 9,5 )
DclFld Name( Result2 ) Type( *ZONED ) Len( 7,5 )
DclFld Name( Result3 ) Type( *ZONED ) Len( 8,5 )
//The value of "Result1" is now 1234.01100
//The value of "Result2" is
now 73.00000
//The value of "Result3" is now 124.00000
ENDSR