Which variable type is best for this?
Basically, the module I'm in is giving an example of a simple addition code and calling it a calculator (which it is, just limited to one function). But it uses integers, so that got me thinking: wouldn't it be better to use either floats or doubles? In which case, in a more complete calculator (lets go with addition, subtraction, multiplication, and division), would a float or a double be better? Actually, maybe my question would be better asked as "What's the difference between a double and a float?"