forgot leading zero in front of . in F format
This commit is contained in:
parent
bd545e78b2
commit
b9d8cbb8ff
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user