O
Old Wolf
Does the Standard say that DBL_MAX must be a compile-time constant?
BCC 5.x has never made any pretense at C99 compatibility.
OTOH, BCC 6 does claim C99 compatibility.
OTOH (I need 3 hands..) BCC 6 is non-free (I think the
cheapest option is to pay $10 for a version with some restrictive licencing)
Yes. From C99 5.2.4.2.2:
The values given in the following list shall be replaced by
constant expressions with implementation-defined values that
are greater than or equal to those shown:
- maximum representable finite floating-point number, (1 - b-p)bemax
FLT_MAX 1E+37
DBL_MAX 1E+37
LDBL_MAX 1E+37
BCC 5.x has never made any pretense at C99 compatibility.
OTOH, BCC 6 does claim C99 compatibility.
OTOH (I need 3 hands..) BCC 6 is non-free (I think the
cheapest option is to pay $10 for a version with some restrictive licencing)