public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ade1e3
)
allow for three digits in exponent
author
ceriel
<none@none>
Fri, 1 Jul 1988 11:56:08 +0000
(11:56 +0000)
committer
ceriel
<none@none>
Fri, 1 Jul 1988 11:56:08 +0000
(11:56 +0000)
lang/cem/libcc/stdio/fltpr.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/stdio/fltpr.c
b/lang/cem/libcc/stdio/fltpr.c
index
fbfdaa7
..
7d45a2f
100644
(file)
--- a/
lang/cem/libcc/stdio/fltpr.c
+++ b/
lang/cem/libcc/stdio/fltpr.c
@@
-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);