JavaScript Editor js editor     Web development 
↑


Main Page

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.

Return Value

Numeric

Example

В Copy 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

See Also



JavaScript Editor js editor     Web development 
→→