How to round a number

Hacking the string rep is not required.

You can ask for the formatting of the float to limit the precision.

print(‘%.2f’ % float_value)