FLOOR

The FLOOR function returns the closest integer less 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 = FLOOR( X )

Arguments

X

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

Example

To print the floor function of 5.9, enter:

PRINT, FLOOR(5.9)

IDL prints:

5

See Also

CEIL , COMPLEXROUND , ROUND