bug fix
This commit is contained in:
parent
77f33b6762
commit
254364ca11
1 changed files with 8 additions and 6 deletions
|
@ -61,13 +61,15 @@ cvt(value, ndigit, decpt, sign, ecvtflag)
|
||||||
pb = buf;
|
pb = buf;
|
||||||
while (pe > buf1) *pb++ = *--pe;
|
while (pe > buf1) *pb++ = *--pe;
|
||||||
}
|
}
|
||||||
else if (value > 0) {
|
else {
|
||||||
fractpart = value;
|
|
||||||
while ((value = value*10) < 1) {
|
|
||||||
fractpart = value;
|
|
||||||
pointpos--;
|
|
||||||
}
|
|
||||||
pb = &buf[0];
|
pb = &buf[0];
|
||||||
|
if (value > 0) {
|
||||||
|
fractpart = value;
|
||||||
|
while ((value = value*10) < 1) {
|
||||||
|
fractpart = value;
|
||||||
|
pointpos--;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pe = &buf[ndigit];
|
pe = &buf[ndigit];
|
||||||
if (! ecvtflag) {
|
if (! ecvtflag) {
|
||||||
|
|
Loading…
Reference in a new issue