floor (Function)
Signature: floor(x: t0) -> t0
Description: The greatest integer <= x, as a float. Total: floor of an infinity or NaN is itself.
Parameters
- x (
t0): The float to round down
Returns: t0
Example
print(floor(-2.7)) // -3.0
print (floor -2.7) // -3.0