Possible Duplicate:
How do I format a number in java?
I have problems in using Double. When the result is a whole number, it would display with a ” .0″ like 1.0, 2.0.
Can anyone help me how to remove that .0 in a whole number?
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.
Format the string that you are displaying.