round() doesn’t seem to be rounding properly

I can’t help the way it’s stored, but at least formatting works correctly:

'%.1f' % round(n, 1) # Gives you '5.6'

Leave a Comment