This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc: HUGE_VAL is tiny


gcc 2.95.2 running under Cygwin 1.1.2
The value of HUGE_VAL (from math.h) should be infinite or large.  Instead it
is negative and tiny.

Test program:
============================ tHUGE_VAL.c
#include <math.h>
#include <stdio.h>
int main (int argc, const char *argv[])
{
  printf ("HUGE_VAL = %g\n", HUGE_VAL);
  return 0;
}

==============================
>> gcc tHUGE_VAL.c -o tHUGE_VAL
>>./tHUGE_VAL
HUGE_VAL = -6.59614e-229

There seems to be a problem here - hope its not just me.

Peter Kabal     Kabal@ECE.McGill.CA (514) 398-7130
Electrical & Computer Engineering   (514) 398-4470 (FAX)
McGill University
3480 University, Montreal, Quebec, Canada  H3A 2A7



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]