[torquedev] Re: trunk not compiiing on OS X 10.4
Matti Bickel
cat5 at minet.uni-jena.de
Wed Aug 29 09:53:45 MDT 2007
Glen Beane <glen.beane at gmail.com> wrote:
> int main (int argc, char **argv)
> {
> double x = 1e500;
>
> return 0;
> }
Here's what the C99 Standard says (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
FLT_MAX 1E+37
DBL_MAX 1E+37
LDBL_MAX 1E+37
You can't *expect* an arch to support 1e500, afaik. Haven't had a look
at Apple's gcc in a while, here are my values:
float_max: 3.402823e+38, double_max: 1.797693e+308, long_double_max:
1.797693E+308
mabi at pluto coding % gcc --version
gcc (GCC) 4.1.2 (Gentoo 4.1.2)
mabi at pluto coding % uname -mip
ppc 7455, altivec supported PowerBook6,3
HTH,
Matti
--
Regards, Matti Bickel
Signed/Encrypted email preferred (key 4849EC6C)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20070829/755e4098/attachment.bin
More information about the torquedev
mailing list