From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d9462afc03d84671,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1014db,d9462afc03d84671,start X-Google-Attributes: gid1014db,public From: patteeuw@sys2.ped.pto.ford.com (Jack Patteeuw) Subject: Why different values for HUGE_VAL ? Date: 1996/08/21 Message-ID: <4vf903$ord@pt9201.ped.pto.ford.com>#1/1 X-Deja-AN: 175616574 organization: Ford Motor Co., AVT-CAPE, Dearborn, MI reply-to: patteeuw@sys2.ped.pto.ford.com newsgroups: comp.lang.c,comp.unix.osf.osf1 The following is a section out of math.h from a Digital UNIX system. #ifdef _ANSI_C_SOURCE #if defined(_IEEE_FP) # define HUGE_VAL 1.8e308 #else # define HUGE_VAL 1.797693134862315708e308 #endif #endif /*_ANSI_C_SOURCE */ My question is, why should there be 2 different values for HUGE_VAL based on IEEE_FP being defined ? Jack Patteeuw My opinions are my own and not my employer's, my wife's, or my children ! "I used to do VMS, Stolen from a good friend: Now I do Unix; "A mind is like a parachute ... It's a living" It only works when it is open !"