float literals
suggest changeA float literal uses the suffix F or f. A real literal without a suffix has type double and does not implicitly convert to float:
float f = 30.5F;
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents