home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / mntinc16 / float.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  2.9 KB  |  80 lines

  1. /*
  2.  * float.h
  3.  *    see sec 2.2.4.2 and 4.1.3 of ansi draft
  4.  *
  5.  *    this implementation strives to meet these values, but actually
  6.  *    does'nt quite make it, so we lie (the file was produced by gcc
  7.  *    compiled config.c on a Sun).
  8.  *    i need help here!
  9.  *        ++jrb
  10.  */
  11. #ifndef _FLOAT_H
  12. #define _FLOAT_H
  13.  
  14. /* float.h */
  15. /* Produced by config version 4.2, CWI, Amsterdam */
  16.  
  17.    /* Radix of exponent representation */
  18. #define FLT_RADIX 2
  19.    /* Number of base-FLT_RADIX digits in the mantissa of a float */
  20. #define FLT_MANT_DIG 24
  21.    /* Number of decimal digits of precision in a float */
  22. #define FLT_DIG 6
  23.    /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
  24. #define FLT_ROUNDS 1
  25.    /* Minimum float x such that 1.0+x != 1.0 */
  26. #define FLT_EPSILON 5.96046519e-08F
  27.    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
  28. #define FLT_MIN_EXP (-125)
  29.    /* Minimum normalised float */
  30. #define FLT_MIN 1.17549435e-38F
  31.    /* Minimum int x such that 10**x is a normalised float */
  32. #define FLT_MIN_10_EXP (-37)
  33.    /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
  34. #define FLT_MAX_EXP 128
  35.    /* Maximum float */
  36. #define FLT_MAX 3.40282347e+38F
  37.    /* Maximum int x such that 10**x is a representable float */
  38. #define FLT_MAX_10_EXP 38
  39.  
  40.    /* Number of base-FLT_RADIX digits in the mantissa of a double */
  41. #define DBL_MANT_DIG 53
  42.    /* Number of decimal digits of precision in a double */
  43. #define DBL_DIG 15
  44.    /* Minimum double x such that 1.0+x != 1.0 */
  45. #define DBL_EPSILON 1.1107651257113995e-16
  46.    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
  47. #define DBL_MIN_EXP (-1021)
  48.    /* Minimum normalised double */
  49. #define DBL_MIN 2.2250738585072014e-308
  50.    /* Minimum int x such that 10**x is a normalised double */
  51. #define DBL_MIN_10_EXP (-307)
  52.    /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
  53. #define DBL_MAX_EXP 1024
  54.    /* Maximum double */
  55. #define DBL_MAX 1.7976931348623157e+308
  56.    /* Maximum int x such that 10**x is a representable double */
  57. #define DBL_MAX_10_EXP 308
  58.  
  59.    /* Number of base-FLT_RADIX digits in the mantissa of a long double */
  60. #define LDBL_MANT_DIG 53
  61.    /* Number of decimal digits of precision in a long double */
  62. #define LDBL_DIG 15
  63.    /* Minimum long double x such that 1.0+x != 1.0 */
  64. #define LDBL_EPSILON 1.1107651257113995e-16L
  65.    /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
  66. #define LDBL_MIN_EXP (-1021)
  67.    /* Minimum normalised long double */
  68. #define LDBL_MIN 2.2250738585072014e-308L
  69.    /* Minimum int x such that 10**x is a normalised long double */
  70. #define LDBL_MIN_10_EXP (-307)
  71.    /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
  72. #define LDBL_MAX_EXP 1024
  73.    /* Maximum long double */
  74. #define LDBL_MAX 1.7976931348623157e+308L
  75.    /* Maximum int x such that 10**x is a representable long double */
  76. #define LDBL_MAX_10_EXP 308
  77.  
  78.  
  79. #endif /* _FLOAT_H */
  80.