Henry Wong wrote:What do you mean by "I need to keep them"? Are you using DecimalFormat to parse a double from a string? And is now wondering why when you print the double, the format of the double is gone?
If you are... A double is a value. It contains no formatting what-so-ever. So, there is no such a thing as "keep them" -- any formatting is lost when the string is converted to a double.
By default a number like 12.20 is shown as 12.2. But, I need to show it as 12.20. If the number is 12.220, I need to show 12.220. But, JFreeChart which uses decimal format drops 0 at the end.
SCJP2<br /> <br /><a href="http://www.primeguru.com" target="_blank" rel="nofollow">Share Your Personal Experiences</a>