round() doesn’t seem to be rounding properly November 30, 2022 by Tarik I can’t help the way it’s stored, but at least formatting works correctly: '%.1f' % round(n, 1) # Gives you '5.6'