// Getting an explicit + - sign // Formats 3.0 as "+3.0" and -3.0 as "-3.0". // The surrounding ' are not needed in this case. DecimalFormat explicitSign = new DecimalFormat( "'+'0.0;'-'0.0" );