I understand that 2.675 rounds to 2.67 in python2. I understand WHY it rounds down instead of rounding up.
However, there is no case that I can think of where this is the desired outcome.
So, is there a better way to deal with this than defining my own round function?
def r2(n, d):
return round(n * 10**d) / 10**d
Is there a case where this will fail?
Also, how is this not considered a bug?