hoc: print exact floating point output
This commit is contained in:
parent
6d069877f0
commit
6c6117397f
1 changed files with 2 additions and 2 deletions
|
|
@ -598,7 +598,7 @@ printtop(void) /* pop top value from stack, print it */
|
|||
if (s == 0)
|
||||
s = install("_", VAR, 0.0);
|
||||
d = pop();
|
||||
print("%.12g\n", d.val);
|
||||
print("%.17g\n", d.val);
|
||||
s->u.val = d.val;
|
||||
}
|
||||
|
||||
|
|
@ -607,7 +607,7 @@ prexpr(void) /* print numeric value */
|
|||
{
|
||||
Datum d;
|
||||
d = pop();
|
||||
print("%.12g ", d.val);
|
||||
print("%.17g ", d.val);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue