float = 45,0748
newFloat = round(float, 2)
# Python v2.7-
"%.15g" % f
# Python v3.0
format(f, ".15g")
# Python 2.7+, 3.2+
# Pass float to Decimal constructor
from decimal import Decimal
Decimal(f)
# convert float to int
x=3.1415
y=int(x)
print(y) #outputs 3
# Method 1:
float_number = float (decimal_number)
# Method 2:
float_number = decimal_number * 1.0