In an appendix, the IEEE standard lists several useful floating-point
functions that an implementor may support but is not required to
support. Table 2-12 “HP-UX Support for IEEE
Recommended Functions” describes how
HP-UX systems support these functions. The supported functions and
macros are provided in the C library only. Appendix A “The C Math Library” describes these functions briefly; see the
online man pages for more information.
Table 2-12 HP-UX Support for IEEE
Recommended Functions
Functionality | HP
Implementation |
|---|
Number classification | The
fpclassify and
signbit macros;
see “Floating-Point Classification
Macro” |
Copy sign | The
copysign function; float
version (copysignf)
also supported |
Finite inquiry | The
isfinite macro |
Base exponent | The
logb function |
Next representable inquiry | The
nextafter function; float
version (nextafterf) also supported |
NaN inquiry | The
isnan macro |
Scale by power of base | The
scalb function |
Unordered
inquiry | Not supported |