This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi all, I ran into a problem with the NumberFormat class and I was wondering if someone had a solution. Basically, if I run the following snippet NumberFormat format = NumberFormat.getInstance(); format.setMaximumFractionDigits(2); format.setGroupingUsed(false); System.out.println(format.format(5.795)); I get 5.8. However, what I really expected to see was 5.80. Does anyone know of a nice workaround to fix this problem? TIA, PJ