Links are not active on this page.
 FLOOR( ) Function

Returns the nearest integer that is less than or equal to the specified numeric expression.

FLOOR(nExpression)

Parameters

nExpression

Specifies the numeric expression for which FLOOR( ) returns the nearest integer that is less than or equal to the numeric expression.

Expand imageReturn Value

Numeric

Expand imageExample

 CopyCode imageCopy Code
STORE  10.9 TO gnNumber1
STORE -10.1 TO gnNumber2
CLEAR
? FLOOR(gnNumber1)  && Displays 10
? FLOOR(gnNumber2)  && Displays -11
? FLOOR(10.0)  && Displays 10
? FLOOR(-10.0)  && Displays -10

Expand imageSee Also