Re: DecimalFormat.format() misbehaved on my machine



On Aug 27, 7:13 am, ps <pausan....@xxxxxxxxx> wrote:
But when I tried it out, I got different results:
System.out.println(new DecimalFormat("##0.##E0").format(12345)); //
prints 12.345E3

It's a four year old bug. And when reported it was already a few years
old:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4871921

.