Arunabh
0
Q:

python ceil

Syntax:
import math
math.floor(x)

Parameter: 
x-numeric expression. 

Returns: 
largest integer not greater than x.
1
# 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))  
0
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
7
import math
print(math.ceil(5.3))
output = 6
0

New to Communities?

Join the community