Subject: HUGE_VAL
To: None <>
From: Patrick Welche <>
List: current-users
Date: 04/14/2000 11:40:36
From math.h:
extern const char __infinity[];
#define HUGE_VAL        (*(const double *)(const void *)__infinity)

1) Does the following test prog make sense? (It does say double above...)

#include <math.h>
#include <stdio.h>

int main()
  printf(" HUGE_VAL: % g\n", HUGE_VAL);
  printf("-HUGE_VAL: % g\n",-HUGE_VAL);

  return 0;

2) What am I missing?

Output on i386:

Output on arm32:
 HUGE_VAL:  1.06048e-314
-HUGE_VAL: -1.06048e-314

which doesn't appear to be particularly huge to me.

Systems: NetBSD-1.4U/i386, egcs-2.91.66; NetBSD-1.4/arm32, egcs-2.91.60



PS - I'd be interested to see the output from an m68k port user...