|
Duplicate :
|
|
|
Duplicate :
|
|
|
Duplicate :
|
|
|
Duplicate :
|
|
|
Relates :
|
|
|
Relates :
|
FULL PRODUCT VERSION :
J2SE 1.4 J2SE 1.5
ADDITIONAL OS VERSION INFORMATION :
windows XP
EXTRA RELEVANT SYSTEM CONFIGURATION :
nothing
A DESCRIPTION OF THE PROBLEM :
DecimalFormat format = new DecimalFormat("#,##0.0#; (#)");
double number2 = -3456.349347;
System.out.println(format.format(number2));
Result expected is: (3,456.35)
But I got : (3,456.35
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the following code, will get wrong result:
DecimalFormat format = new DecimalFormat("#,##0.0#; (#)");
double number2 = -3456.349347;
System.out.println(format.format(number2));
Result expected is: (3,456.35)
But I got : (3,456.35
REPRODUCIBILITY :
This bug can be reproduced always.