I want a to be rounded to 13.95.
a
>>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999
The ro
It's doing exactly what you told it to do and is working correctly. Read more about floating point confusion and maybe try decimal objects instead.