forgot leading zero in front of . in F format

This commit is contained in:
ceriel 1988-08-04 15:48:34 +00:00
parent bd545e78b2
commit b9d8cbb8ff

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) {