General Python

floor() Method in Python with Examples1 min read

In this tutorial, we’ll learn how to use the floor() method in Python.

floor() method in Python returns floor of x i.e., the largest integer not greater than x.




Syntax

Parameters

x-numeric expression.

Returns

largest integer not greater than x.

Example

Output:

Leave a Comment