forgot leading zero in front of . in F format
This commit is contained in:
parent
96fc9c9ab7
commit
cdb038ed6f
@ -42,6 +42,7 @@ gcvt(value, ndigit, buf)
|
|||||||
if (dp <= 0) {
|
if (dp <= 0) {
|
||||||
if (*s1 != '0') {
|
if (*s1 != '0') {
|
||||||
/* otherwise the whole number is 0 */
|
/* otherwise the whole number is 0 */
|
||||||
|
*s2++ = '0';
|
||||||
*s2++ = '.';
|
*s2++ = '.';
|
||||||
}
|
}
|
||||||
while (dp < 0) {
|
while (dp < 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user