how to convert int to float with 2 decimal in python code example Example: int to float python a = 5 a = float(a) # int to float