I have this code:
sliderPosition.minimumValue = 150.0f;
sliderPosition.maximumValue = 450.0f;
it works as if the range was 150 to 450. so I cant understand what is the “f”
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.
If you just write like
150.0it’ll be taken as adouble.If you write it like
150.0fit’ll be taken asfloat.In situations where you need to tell the compiler that you are using float not double you need to put a
fafter the number.