how to round off a number in python up to 2 decimal places code example Example: round off float to 2 decimal places in python answer = str(round(answer, 2))