There is two methods:
float_number = float ( decimal_number )float_number = decimal_number * 1.0
First one using the built in function and second one without any function, but takecare about the 1.0 not 1 as it should be float so the result will be float.