1. How to always show decimal part when using DecimalFormat? stackoverflow.com
Result ... |
2. DecimalFormat drops the 0s after decimal point. I need to keep them. coderanch.comHi, I have to show the number as is without dropping the end 0s after decimal. e.g. I need to show 12 as 12, 13.0 as 13.0 14.50 as 14.50. But the decimal format removes the last zero. Unfortunately, JFreeChart tooltip logic requires a decimal format to be specified to do anything like this. Any idea how we can achieve this. ... |