Floor

The floor function maps a real number to the next largest or next smallest integer.

More precisely, floor(x) is the largest integer not greater than x.

img

Syntax :

Floor(Value)
Parameters Description
Value Required, number.

Examples :

Example 1

dFloor = Floor(1.99999999)
DEBUG(dFloor)

Result :

dFloor
= 1

Example 2

dFloor = Floor(-1.99999999)
DEBUG(dFloor)

Result :

dFloor
= -2

Example 3

dFloor = Floor(0.99999999)
DEBUG(dFloor)

Result :

dFloor
= 0

Example 4

dFloor = Floor(-99.99999999)
DEBUG(dFloor)

Result :

dFloor
= -100

Example 5

dFloor = Floor(-1)
DEBUG(dFloor)

Result :

dFloor
= -1