Web Analytics

Python math.floor() Method

MathRounding

The math.floor() method rounds a number down to the nearest integer.

Syntax

math.floor(x)

Return Value

The largest integer <= x.

Example

Output
Click Run to execute your code