I believe this is one of the charming differences between what we are taught in math class versus what we are taught in computer class.
If you want to read more about rounding, see Rounding - Wikipedia
There are some other differences between math and computer science, for example in order of operations. Even Excel has some quirks. Enter = -3^2 in Excel and ask if you are happy with that result.