In web application, i write the code like this :
float f= 659/1024
but i am getting the resule in f is 0.0 where it has to be 0.6458 smething
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.
That is because both values are integers. Use 659.0/1024 or 659F/1024 instead.