M
Mark Sizzler
How do I specify that a DecimalFormat should ALWAYS prepend the decimal sign?
I thought DecimalFormat("-00000.00");
would be ok, But in that case a negative number will start with a double minus:
--0034.56
Is there really no other way than
System.out.println("Number=" + ((number >=0)? "+" : "") + sdf.format(number));
Mark
I thought DecimalFormat("-00000.00");
would be ok, But in that case a negative number will start with a double minus:
--0034.56
Is there really no other way than
System.out.println("Number=" + ((number >=0)? "+" : "") + sdf.format(number));
Mark