This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Floating point Aritnimetic [ IEEE754 ]
- To: help-gcc at gnu dot org
- Subject: Floating point Aritnimetic [ IEEE754 ]
- From: Alessio Terpin <terpin at infis dot univ dot trieste dot it>
- Date: Sat, 22 Apr 2000 22:03:54 +0200 (CEST)
Hi Ml
I try to kepp track of the rounding of floating point in my program
so i have start to study the subject
I'm work on Linux platform [ rh 6.1 2.2.12 egcs-2.91 ]
and Digital [ dec-osf4.0d ]
On Linux i have search in the /usr/include some header file that have
the definition of the floating point but i havent find nothing here.
Also i have search and find a file named
/usr/local/root/cint/include/float.h
But i here i find that the minimun exponet is -125 and te Maximun is 128
in the IEEE754 is specified min = -126 max = 127
This file is the right file for the gcc or is same other file ?
Which is the corret vaule for the gcc and where i can find it ?
Thanks in advance for all help and Good Easter
Saluti da Alessio Terpin
|---------------------------------------|
| Hello World! |
| The most difficult things to do ! K&R |
|---------------------------------------|
#ifndef G__FLOAT_H
#define G__FLOAT_H
#define DBL_DIG (15)
#define DBL_EPSILON (2.22045e-16)
#define DBL_MANT_DIG (53)
#define DBL_MAX (1.79769e+308)
#define DBL_MAX_10_EXP (308)
#define DBL_MAX_EXP (1024)
#define DBL_MIN (2.22507e-308)
#define DBL_MIN_10_EXP (-307)
#define DBL_MIN_EXP (-1021)
#define FLT_DIG (6)
#define FLT_EPSILON (1.19209e-07)
#define FLT_MANT_DIG (24)
#define FLT_MAX (3.40282e+38)
#define FLT_MAX_10_EXP (38)
#define FLT_MAX_EXP (128)
#define FLT_MIN (1.17549e-38)
#define FLT_MIN_10_EXP (-37)
#define FLT_MIN_EXP (-125)
#define FLT_RADIX (2)
#define FLT_ROUNDS (1)
#define LDBL_DIG (15)
#define LDBL_EPSILON (2.22045e-16)
#define LDBL_MANT_DIG (53)
#define LDBL_MAX (1.79769e+308)
#define LDBL_MAX_10_EXP (308)
#define LDBL_MAX_EXP (1024)
#define LDBL_MIN (2.22507e-308)
#define LDBL_MIN_10_EXP (-307)
#define LDBL_MIN_EXP (-1021)
#endif