Home DecimalFormat newFormat = new DecimalFormat("##.##");
Reply: 0

DecimalFormat newFormat = new DecimalFormat("##.##");

user461
1#
user461 Published in June 19, 2018, 11:55 pm

DecimalFormat newFormat = new DecimalFormat("##.##"); giving me unexpected result for the below values:

for value 0.005 = 0.00
          0.015 = 0.02

DecimalFormat is not formatting the 0.005 to 0.01. Please let me know how to get the value of 0.005 to 0.01 when DecimalFormat newFormat = new DecimalFormat("##.##"); is provided.

Thanks in Advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317635 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO