Copyright © 1997 The Open Group

float.h - floating types

`#include <float.h>`

The characteristics of floating types are defined in terms of a model that describes a representation of floating-point numbers and values that provide information about an implementation's floating-point arithmetic.The following parameters are used to define the model for each floating-point type:

FLT_RADIX will be a constant expression suitable for use in the

#ifpreprocessing directives. All except FLT_RADIX and FLT_ROUNDS have separate names for all three floating-point types. The floating-point model representation is provided for all macro names except FLT_ROUNDS.The rounding mode for floating-point addition is characterised by the value of FLT_ROUNDS:

- -1
- indeterminable
- 0
- toward 0.0
- 1
- to nearest
- 2
- toward positive infinity
- 3
- toward negative infinity
All other values for FLT_ROUNDS characterise implementation-dependent rounding behaviour.

The macro names given in the following list will be defined as expressions with values that are equal or greater in magnitude (absolute value) to those shown, with the same sign.

The macro names given in the following list will be defined as expressions with values that will be equal to or greater than those shown.

The macro names given in the following list will be defined as expressions with values that will be equal to or less than those shown.

None.

None.

None.

Copyright © 1997 The Open Group

[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]