INTXP 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

intxpf, intxp, intxpl, intxpw, intxpq, intxpll, intxpdf, intxpd, intxpdl, intxpdll - exponent of floating-point value

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern int intxpf (float x);

extern int intxp (double x);

extern int intxpl (long double x);

extern int intxpw (__float80 x);

extern int intxpq (__float128 x);

extern int intxpll (long_long_double x);

extern int intxpdf (decimal_float x);

extern int intxpd (decimal_double x);

extern int intxpdl (decimal_long_double x);

extern int intxpdll (decimal_long_long_double x);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Extract the exponent of a floating-point number represented as the product of a signed fraction in [1/B, 1) and a power of the base (B).

The argument must be finite and nonzero, but checks to ensure that are intentionally omitted.

These functions are intended primarily for internal use in the mathcw library. User code should use the Standard C function frexp() instead.


RETURN VALUES

Return the exponent.

ERRORS

None.

SEE ALSO

adx(3CW), frexp(3CW), ldexp(3CW), setxp(3CW).