COBOL Manual for TNS and TNS/R Programs
Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs—522555-006
14-20
INTEGER Function
INTEGER Function
INTEGER, an integer function, returns the greatest integer that is less than or equal to
its argument.
argument
is a numeric argument.
The returned value is the greatest integer that is less than or equal to the value of
argument.
Example 14-12. INTEGER Function
Code:
DISPLAY FUNCTION INTEGER (-3.5)
DISPLAY FUNCTION INTEGER (-3)
DISPLAY FUNCTION INTEGER (3)
DISPLAY FUNCTION INTEGER (3.5)
Output:
-4
-3
3
3
( )
INTEGERFUNCTION argument
VST431.vsd