Possible Duplicate:
Suffix of “f” on float value?
Is there a different suffix to be used with type double or is it the case that "f" works for both?
Possible Duplicate:
Suffix of “f” on float value?
Is there a different suffix to be used with type double or is it the case that "f" works for both?
An undecorated floating point literal like 1.5 has type double. The suffix f makes the type float (as in 1.5f), and L makes it long double (as in 1.5L).