fltfmt: make %g print decimal numbers less than 1 with a leading zero

This commit is contained in:
ppatience0 2013-03-03 14:12:33 -05:00
parent 1a88844069
commit 95d41e8ff4

View file

@ -205,7 +205,7 @@ found:
if(xadd(s1, c2, 5))
e++;
if(e >= -4 && e <= prec) {
c1 = -e - 1;
c1 = -e;
c4 = prec - e;
chr = 'h'; // flag for 'f' style
}