home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gccdist / gcc / include / float.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-17  |  2.7 KB  |  69 lines

  1. #ifndef _FLOAT_H
  2. #define _FLOAT_H
  3.  
  4. /* float.h */
  5. /* Produced by enquire version 4.3, CWI, Amsterdam */
  6.  
  7.    /* Radix of exponent representation */
  8. #define FLT_RADIX 2
  9.    /* Number of base-FLT_RADIX digits in the significand of a float */
  10. #define FLT_MANT_DIG 24
  11.    /* Number of decimal digits of precision in a float */
  12. #define FLT_DIG 6
  13.    /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
  14. #define FLT_ROUNDS 1
  15.    /* Difference between 1.0 and the minimum float greater than 1.0 */
  16. #define FLT_EPSILON 1.19209290e-07F
  17.    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
  18. #define FLT_MIN_EXP (-127)
  19.    /* Minimum normalised float */
  20. #define FLT_MIN 2.93873588e-39F
  21.    /* Minimum int x such that 10**x is a normalised float */
  22. #define FLT_MIN_10_EXP (-38)
  23.    /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
  24. #define FLT_MAX_EXP 127
  25.    /* Maximum float */
  26. #define FLT_MAX 1.70141173e+38F
  27.    /* Maximum int x such that 10**x is a representable float */
  28. #define FLT_MAX_10_EXP 38
  29.  
  30.    /* Number of base-FLT_RADIX digits in the significand of a double */
  31. #define DBL_MANT_DIG 56
  32.    /* Number of decimal digits of precision in a double */
  33. #define DBL_DIG 16
  34.    /* Difference between 1.0 and the minimum double greater than 1.0 */
  35. #define DBL_EPSILON 2.77555756156289135e-17
  36.    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
  37. #define DBL_MIN_EXP (-127)
  38.    /* Minimum normalised double */
  39. #define DBL_MIN 2.93873587705571877e-39
  40.    /* Minimum int x such that 10**x is a normalised double */
  41. #define DBL_MIN_10_EXP (-38)
  42.    /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
  43. #define DBL_MAX_EXP 127
  44.    /* Maximum double */
  45. #define DBL_MAX 1.70141183460469229e+38
  46.    /* Maximum int x such that 10**x is a representable double */
  47. #define DBL_MAX_10_EXP 38
  48.  
  49.    /* Number of base-FLT_RADIX digits in the significand of a long double */
  50. #define LDBL_MANT_DIG 56
  51.    /* Number of decimal digits of precision in a long double */
  52. #define LDBL_DIG 16
  53.    /* Difference between 1.0 and the minimum long double greater than 1.0 */
  54. #define LDBL_EPSILON 2.77555756156289135e-17L
  55.    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
  56. #define LDBL_MIN_EXP (-127)
  57.    /* Minimum normalised long double */
  58. #define LDBL_MIN 2.93873587705571877e-39L
  59.    /* Minimum int x such that 10**x is a normalised long double */
  60. #define LDBL_MIN_10_EXP (-38)
  61.    /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
  62. #define LDBL_MAX_EXP 127
  63.    /* Maximum long double */
  64. #define LDBL_MAX 1.70141183460469229e+38L
  65.    /* Maximum int x such that 10**x is a representable long double */
  66. #define LDBL_MAX_10_EXP 38
  67.  
  68. #endif /* _FLOAT_H */
  69.