Functions
math.floor()
It returns the largest integer less than or equal to a given number. In simpler terms, it rounds a number down to the nearest whole number.
Syntax · 1 of 4
math.floor(const float number) → const int
Arguments
number required const float The number to use in the calculation. Return Type
const int Syntax · 2 of 4
math.floor(input float number) → input int
Arguments
number required input float The number to use in the calculation. Return Type
input int Syntax · 3 of 4
math.floor(simple float number) → simple int
Arguments
number required simple float The number to use in the calculation. Return Type
simple int Syntax · 4 of 4
math.floor(series float number) → series int
Arguments
number required series float The number to use in the calculation. Return Type
series int