@Anthony
That works if you are just doing calculations, but what about conditional statements?
if (a == 1.0)
is never a good idea because floats rarely "equal" a desired number. They can be infinitely close, but an equal sign just won't work 99 percent of the time. You'd need to do something like: if (a > 0.99 && a < 1.01) but that gets annoying and verbose. Something like this will almost guarentee an infinite loop: for (float i = 0.f; i != 100.f; i += 0.1f) { /*do something*/ }
ints are great for switch statements, conditional statements, counting, or math where you need to know precision and cant afford to loose any digits (such as banking software).