19
loading...
This website collects cookies to deliver better user experience
float_1 = 1.1
float_2 = 1.5
float_3 = 1.9
print(int(float_1))
#Output - 1
print(int(float_2))
#Output - 1
print(int(float_3))
#Output - 1
math.ceil(x)
math.floor(x)
import math
float_1 = 1.1
float_2 = 1.5
float_3 = 1.9
print(math.floor(float_1))
print(math.ceil(float_1))
#Output - 1
#Output - 2
print(math.floor(float_2))
print(math.ceil(float_2))
#Output - 1
#Output - 2
print(math.floor(float_3))
print(math.ceil(float_3))
#Output - 1
#Output - 2