-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 1.1.6
-
Component/s: core-libs
-
1.2beta4
-
sparc
-
solaris_2.5.1
-
Verified
The java.text.DecimalFormat class no longer zero suppresses # symbols.
In the below example the data should be display
as 9.02 & .00 not as 09.02 & 00.00
import java.text.DecimalFormat;
public class bug {
public static void main (String args[]) {
DecimalFormat nf = new DecimalFormat("##,###,###.00");
System.out.println(nf.format(9.02));
System.out.println(nf.format(0));
}
}
In the below example the data should be display
as 9.02 & .00 not as 09.02 & 00.00
import java.text.DecimalFormat;
public class bug {
public static void main (String args[]) {
DecimalFormat nf = new DecimalFormat("##,###,###.00");
System.out.println(nf.format(9.02));
System.out.println(nf.format(0));
}
}