as with all the other options, it shows error when it supposed to but also shows error when I input 0.7 0.9 1.3 1.4 1.8 1.9 2.1 2.3 2.6 2.8
it looks all random so it's hard to fix it
it shows errors in the same place (aaaa!!!!!!going crazy)
which is exactly what it does with my idea, so I decided to cout ((int)(score * 100.0) % 10) just to see what it gives for the problematic numbers. All the numbers I listed before and more I didn't list are giving value of 9.
so I'm thinking to do this:
Please what's going wrong with the epsilon comparison I've given you? It's the standard way of comparing two double values. If it shows errors in the same place then there's another bug around.