(Rounding Issues, Rounding Control): Fix declarations in examples.

This commit is contained in:
Richard Stallman 2022-10-02 07:53:34 -04:00
parent b244cb3218
commit 6214f7c8bf
1 changed files with 2 additions and 1 deletions

View File

@ -532,6 +532,7 @@ int main (void)
@{ @{
double x = 100.0; double x = 100.0;
double y; double y;
int n, k;
for (n = 10; n <= 100; n += 10) for (n = 10; n <= 100; n += 10)
@{ @{
y = x; y = x;
@ -1127,7 +1128,7 @@ can write code like this example for interval addition of two reals:
@{ @{
double hi, lo; double hi, lo;
@} v; @} v;
volatile double x, y; extern volatile double x, y;
int rule; int rule;
rule = fegetround (); rule = fegetround ();