The mathLib.floor() system function returns the largest integer not greater than a specified number.
mathLib.floor(numericVariable FLOAT in)
returns (result BIGINT | FLOAT)
myVar = 4.6;
result = mathLib.floor(myVar); // result = 4
myVar2 = -4.6;
result = mathLib.floor(myVar2); // result = -5