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