story
>>> a = 3.0
>>> b = 3
>>> type(a) == type(b)
False
The right answer they were looking for was 3, not 3.0. Adding that .0 implies a precision which is not correct. They weren't looking to see if you knew the arithmetic with that question, they wanted you to show you understood what they meant by "whole number" and understand you can't just leave arbitrary precision after rounding. You didn't give the right answer and apparently kept complaining about it instead of trying to figure out why you were wrong to the point they threatened suspension. I imagine your complaints based on your assumption you couldn't be wrong were causing quite a distraction.For example, 10 / 3 = 3.333... right? We're then asked to round to the nearest whole number, and the answer should be 10 / 3 = 3. It is not correct to then say 10 / 3 = 3.0, because that is just wrong.
I'd end up siding with the teacher on this one. Just acknowledge you didn't understand what they were looking for and do better next time.