allow for three digits in exponent
authorceriel <none@none>
Fri, 1 Jul 1988 11:56:08 +0000 (11:56 +0000)
committerceriel <none@none>
Fri, 1 Jul 1988 11:56:08 +0000 (11:56 +0000)
lang/cem/libcc/stdio/fltpr.c

index fbfdaa7..7d45a2f 100644 (file)
@@ -57,6 +57,10 @@ char *_pscien(r,s,n,b) float r; register char *s; {
        } else {
                *s++ = '+' ;
        }
+       if (dp >= 100) {
+               *s++ = '0' + (dp / 100);
+               dp %= 100;
+       }
        *s++ = '0' + (dp/10);
        *s++ = '0' + (dp%10);
        return(s);