import math x = 3.86356 math.floor(x) #Returns: 3 math.ceil(x) #Returns: 4
import math print(math.floor(5.3)) output = 5
Syntax: import math math.floor(x) Parameter: x-numeric expression. Returns: largest integer not greater than x.
# Python code to demonstrate the working of tan() # importing "math" for mathematical operations import math a = math.pi / 6 # returning the value of tangent of pi / 6 print ("The value of tangent of pi / 6 is : ", end ="") print (math.tan(a))