Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

FLOAT(5)                             BSD                              FLOAT(5)



NAME
     float - floating point constants

SYNOPSIS
     #include <float.h>

DESCRIPTION
     <float.h> defines the constants characterizing Domain/OS BSD floating
     point according to the model described in section 2.2.4.2 of ANS X3.159-
     1989.  All of the constants except FLT_RADIX and FLT_ROUNDS have separate
     names for the single-precision, double-precision, and long-double-
     precision floating-point types.

         Constant                Value                      Meaning

      FLT_RADIX                    2               Base of exponent
                                                   representation.

      FLT_ROUNDS                   1               Rounding mode for
                                                   floating-point addition.

      FLT_MANT_DIG                 24
      DBL_MANT_DIG                 53              Number of binary digits in
      LDBL_MANT_DIG                53              the normalized mantissa.

      FLT_DIG                      6               Number of significant
      DBL_DIG                      15              decimal digits
      LDBL_DIG                     15              represented.

      FLT_MIN_EXP                 -125
      DBL_MIN_EXP                -1021             Minimum binary exponent
      LDBL_MIN_EXP               -1021             value representable.

      FLT_MIN_10_EXP              -37
      DBL_MIN_10_EXP              -307             Minimum decimal exponent
      LDBL_MIN_10_EXP             -307             value representable.

      FLT_MAX_EXP                 +128
      DBL_MAX_EXP                +1024             Maximum binary exponent
      LDBL_MAX_EXP               +1024             value representable.

      FLT_MAX_10_EXP              +38
      DBL_MAX_10_EXP              +308             Maximum decimal exponent
      LDBL_MAX_10_EXP             +308             value representable.

      FLT_MIN               (1.17549435E-38)       Minimum normalized
      DBL_MIN           2.2250738585072014E-308    positive floating point
      LDBL_MIN          2.2250738585072014E-308    number.

      FLT_MAX               (3.40282347E+38)       Maximum represent-
      DBL_MAX           1.79769313486231571E+308   able finite floating point
      LDBL_MAX          1.79769313486231571E+308   number.

      FLT_EPSILON           (1.19209290E-07)       Difference between 1.0 and
      DBL_EPSILON       2.22044604925031308E-16    least value greater than
      LDBL_EPSILON      2.22044604925031308E-16    1.0.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026