forgot leading zero in front of . in F format
This commit is contained in:
parent
96fc9c9ab7
commit
cdb038ed6f
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue