float in math python 3 code example Example: float python 3 float(x) #5 as a float would have to be writen as float(5.0)