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)
# Method 1:
float_number = float (decimal_number)
# Method 2:
float_number = decimal_number * 1.0
# return float with 3 decimals, use round.
# python formula to convert radians to degrees with formula
value = int(input("Provide radian value: "))
rad_angle = round((value * 180) / 3.14159265, 3)
print("The radian value to degrees is: ", rad_angle)