A
Adam Lipscombe
Folks,
I need to output a blank if a double is 0.0;
If I use DecimalFormat to format a zero double I get a single "0" output.
i.e.
double d = 0.0;
DecimalFormat dF = new DecimalFormat("#.##");
System.out.println(dF.format(d));
gives "0".
How do I get rid of the zero?
TIA -Adam
I need to output a blank if a double is 0.0;
If I use DecimalFormat to format a zero double I get a single "0" output.
i.e.
double d = 0.0;
DecimalFormat dF = new DecimalFormat("#.##");
System.out.println(dF.format(d));
gives "0".
How do I get rid of the zero?
TIA -Adam