mmostajab
0
Q:

floor in python

import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
7
import math
print(math.floor(5.3))
output = 5
2
Syntax:
import math
math.floor(x)

Parameter: 
x-numeric expression. 

Returns: 
largest integer not greater than x.
1

New to Communities?

Join the community