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