How to test for +/- INFINITY, etc. in C with IEEE
Tim Smith
tim at ism780c.UUCP
Fri Dec 27 15:29:54 AEST 1985
In article <130 at hadron.UUCP> jsdy at hadron.UUCP (Joseph S. D. Yao) writes:
>
>union liffle { /* long int / float union is a liffle. */
> long int lf_l;
> float lf_f;
>};
>const union liffle inf = { 0x7f80000 }; /* initialises 1st elem */
>#define INFINITY (inf.lf_f)
Aren't you jumping the gun a little here? The above isn't legal yet!
--
Tim Smith sdcrdcf!ism780c!tim || ima!ism780!tim || ihnp4!cithep!tim
More information about the Comp.lang.c
mailing list