I don’t know why f or F is placed after float values in Java or other languages? for instance,
float fVariable = 12.3f;
any features other than indicating that this is a float value?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default
12.3isdoubleliteral. To tell compiler to treat it asfloatexplicitly -> useforF.See tutorial page on the primitive types.