I think you will loughing at me, but I need help here…
I have a double (4.5234234) and need this in Int, but everytime without the numbers after the points. So it doesn’t mathers if its 4.01 or 4.99 it should ever be 4 in Int.
how to do that?
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.
Have you actually tried this?
This will “strip” everything after the decimal point, and only return the whole number part of the double.