The <float.h> Header File

Various platform-dependent floating point constants proposed by ANSI

This header file contains a set of various platform-dependent constants related to floating point values. These constants are proposed by ANSI C. They allow making more portable programs.

Constants

DBL_DIG
Number of significant digits in a floating point number.
DBL_EPSILON
The smallest x for which 1.0+x != 1.0.
DBL_MANT_BITS
Number of bits used for the mantissa.
DBL_MANT_DIG
Number of FLT_RADIX digits in the mantissa.
DBL_MAX_10_EXP
The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).
DBL_MAX_2_EXP
The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).
DBL_MAX_EXP
The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.
DBL_MAX
The maximal floating point value (see notes about FLT_MAX_EXP).
DBL_MIN_10_EXP
The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).
DBL_MIN_2_EXP
The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).
DBL_MIN_EXP
The maximal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
DBL_MIN
The minimal floating point value (see notes about FLT_MIN_EXP).
FLT_DIG
Number of significant digits in a floating point number.
FLT_EPSILON
The smallest x for which 1.0+x != 1.0.
FLT_MANT_BITS
Number of bits used for the mantissa.
FLT_MANT_DIG
Number of FLT_RADIX digits in the mantissa.
FLT_MAX_10_EXP
The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).
FLT_MAX_2_EXP
The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).
FLT_MAX_EXP
The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.
FLT_MAX
The maximal floating point value (see notes about FLT_MAX_EXP).
FLT_MIN_10_EXP
The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).
FLT_MIN_2_EXP
The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).
FLT_MIN_EXP
The minimal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
FLT_MIN
The minimal floating point value (see notes about FLT_MIN_EXP).
FLT_NORMALIZE
Indicates that floating point numbers should always be normalized.
FLT_RADIX
The base used for representing the exponent.
FLT_ROUNDS
Option for rounding floating point numbers during the addition.
LDBL_DIG
Number of significant digits in a floating point number.
LDBL_EPSILON
The smallest x for which 1.0+x != 1.0.
LDBL_MANT_BITS
Number of bits used for the mantissa.
LDBL_MANT_DIG
Number of FLT_RADIX digits in the mantissa.
LDBL_MAX_10_EXP
The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).
LDBL_MAX_2_EXP
The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).
LDBL_MAX_EXP
The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.
LDBL_MAX
The maximal floating point value (see notes about FLT_MAX_EXP).
LDBL_MIN_10_EXP
The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).
LDBL_MIN_2_EXP
The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).
LDBL_MIN_EXP
The maximal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
LDBL_MIN
The minimal floating point value (see notes about FLT_MIN_EXP).

See also: values.h


DBL_DIG

#define DBL_DIG 16

Number of significant digits in a floating point number.


DBL_EPSILON

#define DBL_EPSILON (1e-15)

The smallest x for which 1.0+x != 1.0.


DBL_MANT_BITS

#define DBL_MANT_BITS 64

Number of bits used for the mantissa.


DBL_MANT_DIG

#define DBL_MANT_DIG 16

Number of FLT_RADIX digits in the mantissa.


DBL_MAX_10_EXP

#define DBL_MAX_10_EXP 999

The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).


DBL_MAX_2_EXP

#define DBL_MAX_2_EXP 3321

The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).


DBL_MAX_EXP

#define DBL_MAX_EXP 999

The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.


DBL_MAX

#define DBL_MAX (9.999999999999999e999)

The maximal floating point value (see notes about FLT_MAX_EXP).


DBL_MIN_10_EXP

#define DBL_MIN_10_EXP (-999)

The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).


DBL_MIN_2_EXP

#define DBL_MIN_2_EXP (-3318)

The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).


DBL_MIN_EXP

#define DBL_MIN_EXP (-999)

The maximal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.


DBL_MIN

#define DBL_MIN (1e-999)

The minimal floating point value (see notes about FLT_MIN_EXP).


FLT_DIG

#define FLT_DIG 16

Number of significant digits in a floating point number.


FLT_EPSILON

#define FLT_EPSILON (1e-15)

The smallest x for which 1.0+x != 1.0.


FLT_MANT_BITS

#define FLT_MANT_BITS 64

Number of bits used for the mantissa.


FLT_MANT_DIG

#define FLT_MANT_DIG 16

Number of FLT_RADIX digits in the mantissa.


FLT_MAX_10_EXP

#define FLT_MAX_10_EXP 999

The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).


FLT_MAX_2_EXP

#define FLT_MAX_2_EXP 3321

The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).


FLT_MAX_EXP

#define FLT_MAX_EXP 999

The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.


FLT_MAX

#define FLT_MAX (9.999999999999999e999)

The maximal floating point value (see notes about FLT_MAX_EXP).


FLT_MIN_10_EXP

#define FLT_MIN_10_EXP (-999)

The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).


FLT_MIN_2_EXP

#define FLT_MIN_2_EXP (-3318)

The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).


FLT_MIN_EXP

#define FLT_MIN_EXP (-999)

The minimal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.


FLT_MIN

#define FLT_MIN (1e-999)

The minimal floating point value (see notes about FLT_MIN_EXP).


FLT_NORMALIZE

#define FLT_NORMALIZE 1

Indicates that floating point numbers should always be normalized.


FLT_RADIX

#define FLT_RADIX 10

The base used for representing the exponent.


FLT_ROUNDS

#define FLT_ROUNDS 1

Option for rounding floating point numbers during the addition.


LDBL_DIG

#define LDBL_DIG 16

Number of significant digits in a floating point number.


LDBL_EPSILON

#define LDBL_EPSILON (1e-15)

The smallest x for which 1.0+x != 1.0.


LDBL_MANT_BITS

#define LDBL_MANT_BITS 64

Number of bits used for the mantissa.


LDBL_MANT_DIG

#define LDBL_MANT_DIG 16

Number of FLT_RADIX digits in the mantissa.


LDBL_MAX_10_EXP

#define LDBL_MAX_10_EXP 999

The maximal exponent of a floating point value expressed in base 10 (see notes about FLT_MAX_EXP).


LDBL_MAX_2_EXP

#define LDBL_MAX_2_EXP 3321

The maximal exponent of a floating point value expressed in base 2 (see notes about FLT_MAX_EXP).


LDBL_MAX_EXP

#define LDBL_MAX_EXP 999

The maximal exponent of a floating point value expressed in base FLT_RADIX; greater exponents are principally possible (up to 16383), but not supported in all math functions.


LDBL_MAX

#define LDBL_MAX (9.999999999999999e999)

The maximal floating point value (see notes about FLT_MAX_EXP).


LDBL_MIN_10_EXP

#define LDBL_MIN_10_EXP (-999)

The minimal exponent of a floating point value expressed in base 10 (see notes about FLT_MIN_EXP).


LDBL_MIN_2_EXP

#define LDBL_MIN_2_EXP (-3318)

The minimal exponent of a floating point value expressed in base 2 (see notes about FLT_MIN_EXP).


LDBL_MIN_EXP

#define LDBL_MIN_EXP (-999)

The maximal exponent of a floating point value expressed in base FLT_RADIX; smaller exponents are principally possible (up to -16383), but not supported in all math functions.


LDBL_MIN

#define LDBL_MIN (1e-999)

The minimal floating point value (see notes about FLT_MIN_EXP).


Return to the main index