forgot leading zero in front of . in F format

This commit is contained in:
ceriel 1988-08-04 15:48:34 +00:00
parent 96fc9c9ab7
commit cdb038ed6f

View file

@ -42,6 +42,7 @@ gcvt(value, ndigit, buf)
if (dp <= 0) {
if (*s1 != '0') {
/* otherwise the whole number is 0 */
*s2++ = '0';
*s2++ = '.';
}
while (dp < 0) {