When using toString(), Double adds commas (5143 is printed as 5,143).
How to disable the commas?
When using toString() , Double adds commas (5143 is printed as 5,143). How to
Share
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.
Your problem belongs to Locale, as pointed out correctly by Rorick. However, you should look into DecimalFormat class, in case changing Locale means mess up all the things.
Look at NumberFormat class, to deal with thousand separator. Because it seems your case is regarding thousand separator instead.