GREAT_INT Function

Greatest Integer Function. Standard Library function that returns the greatest integer less than or equal to the passed value. Also known as the Floor Function.

enabled.

Usage

    result = GREAT_INT(x)

Input Parameters

x—An array or scalar of any real data-type, usually float or double.

Returned Value

result—A scalar or array of the same dimensions as x, where result(i) is the greatest integer less than or equal to x(i). result is of type long unless the Floatingpoint keyword has been set.

Keywords

Floatingpoint—If this keyword is present and the input array is of type float or double, the output array is of the same type as the input.

Example

PM, GREAT_INT( [-0.5,0,0.5] )
; PV-WAVE prints:
;      -1
;       0
;       0

See Also

SMALL_INT