The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

float.h - floating types

 SYNOPSIS



#include <float.h>

 DESCRIPTION

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 #if preprocessing 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.


 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

None.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]