Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


INTEGER

The INTEGER function returns the greatest integer value that is less than or equal to the argument specified.

The function type is integer.

Format
Read syntax diagramSkip visual syntax diagram>>-FUNCTION INTEGER--(--argument-1--)--------------------------><
 
argument-1
Must be class numeric.

The returned value is the greatest integer less than or equal to the value of argument-1. For example, FUNCTION INTEGER (2.5) returns a value of 2 and FUNCTION INTEGER (-2.5) returns a value of -3.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)