just a small note to add to this: if I'm not mistaken, all floating point literals in C and C++ are considered to be of type double, unless otherwise qualified.