+ 16
It's because floats are imprecise. You never know what that number is actually going to be. [https://bytes.com/topic/c/answers/917832-why-we-cannot-use-float-switch] example float f = 2.1f; is not exactly 2.1 but maybe 2.0000009 or 2.100000001
4th Oct 2017, 7:55 AM
Babak
Babak - avatar