CEIL

The CEIL function returns the closest integer greater than or equal to its argument. This value is returned as a longword integer with the same structure as the input argument.

Calling Sequence

Result = CEIL( X )

Arguments

X

The value for which the ceiling function is to be evaluated. This value can be single- or double-precision, real or complex floating-point. CEIL returns a longword integer with the same structure as X .

Example

To print the ceiling function of 5.1, enter:

PRINT, CEIL(5.1)

IDL prints:

6

See Also

COMPLEXROUND , FLOOR , ROUND