Here's a challenge for floating point lovers.

Doug Gwyn gwyn at smoke.brl.mil
Thu Jan 24 14:42:36 AEST 1991


In article <16035 at crdgw1.crd.ge.com> volpe at camelback.crd.ge.com (Christopher R Volpe) writes:
-In article <14938 at smoke.brl.mil>, gwyn at smoke.brl.mil (Doug Gwyn) writes:
-|>standard does NOT require that the values of the <float.h> macros be
-|>CONSTANT expressions; ...
-2.2.4.2.2:
-  Of the values in the <float.h> header, FLT_RADIX shall be a constant
-expression suitable for use in #if preprocessing directives; all other
-values need not be constant expressions.            

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.



More information about the Comp.lang.c mailing list