floor - chung-leong/qb GitHub Wiki
floor - Rounds fractions down
float floor( float $x )
floor() returns the largest integral value that is not greater than x.
Parameters:
x - The number to round. It can be a scalar or an array.
Return Value:
The largest integral value not greater than x. If x is an array, the return value will also be an array.
Notes:
floor(-3.8) == -4.0 and not -3.0
Version
1.0 and above.