I was playing around with the Python round function when I noticed something weird. See for yourself:
CMD output:
1.5
2.5
0.5
2
2
0
Code:
a = 1.5
b = 2.5
c = 0.5
print(a)
print(b)
print(c)
print(round(a))
print(round(b))
print(round(c))
What's going on?