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)
|
if (s == 0)
|
||||||
s = install("_", VAR, 0.0);
|
s = install("_", VAR, 0.0);
|
||||||
d = pop();
|
d = pop();
|
||||||
print("%.12g\n", d.val);
|
print("%.17g\n", d.val);
|
||||||
s->u.val = d.val;
|
s->u.val = d.val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -607,7 +607,7 @@ prexpr(void) /* print numeric value */
|
||||||
{
|
{
|
||||||
Datum d;
|
Datum d;
|
||||||
d = pop();
|
d = pop();
|
||||||
print("%.12g ", d.val);
|
print("%.17g ", d.val);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue