Somebody please explain to me why this is happening, I can't seem to find a right answer. And what is the best way to round integers to achieve consistent results?
a = 3.5
b = 2.5
print(f'3.5 rounds up : {round(a)}, 2.5 rounds down: {round(b)}')
Output: 3.5 rounds up : 4, 2.5 rounds down: 2
I expected both integers to round down or up the same.