Here's a challenge for floating point lovers.
Stanley Friesen
sarima at tdatirv.UUCP
Sat Jan 26 11:06:50 AEST 1991
In article <14964 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>Oops, I missed that; thanks for the correction. FLT_RADIX then is okay
>for use in #if expressions, but the other <float.h> macros aren't, not
>even FLT_ROUNDS.
To emphasize this point, I had occasion to look at float.h for SysVr4
a bit ago and it defined FLT_ROUNDS as follows:
#define FLT_ROUNDS (__flt_rounds)
(At least if __STDC__ is defined as 1)
So, there exists an ANSI compliant C compiler that in fact
makes use of this permission for a non-constant float expression.
--
---------------
uunet!tdatirv!sarima (Stanley Friesen)
More information about the Comp.lang.c
mailing list