Mail Archives: djgpp/2001/09/26/07:13:13
In article <20010926093422 DOT 5514 DOT qmail AT web8006 DOT mail DOT in DOT yahoo DOT com> you wrote:
> I got this program from a friend and I tried this out
> on DJGPP. I expected that it would round to the
> nearest even number as the ISO standard says (hope I'm
> remembering it right), but it doesn't happen so.
Nor does the ISO standard actually say so, in classical C89/C90. It
just says "The value is rounded to the appropriate number of digits."
It does not specify by what rounding strategy. In C99, there's a long
sermon dealing with it, which boils down to the rounding mode being
controlled by the same functions that control the FPU itself.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -