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

Table of contents


NAME

setxpf, setxp, setxpl, setxpw, setxpq, setxpll, setxpdf, setxpd, setxpdl, setxpdll - reset integer exponent

SYNOPSIS

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

#include <mathcw.h>

extern float setxpf (float x, int n);

extern double setxp (double x, int n);

extern long double setxpl (long double x, int n);

extern __float80 setxpw (__float80 x, int n);

extern __float128 setxpq (__float128 x, int n);

extern long_long_double setxpll (long_long_double x, int n);

extern decimal_float setxpdf (decimal_float x, int n);

extern decimal_double setxpd (decimal_double x, int n);

extern decimal_long_double setxpdl (decimal_long_double x, int n);

extern decimal_long_long_double setxpdll (decimal_long_long_double x, int n);

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


DESCRIPTION

Compute a number that has the significand of x (a value in [1/B,1)) scaled by the base (B) raised to the power n.

The argument must be finite and nonzero, and the result must neither overflow nor underflow, 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 ldexp() instead.


RETURN VALUES

Return the scaled result.

ERRORS

None.

SEE ALSO

adxp(3CW), frexp(3CW), intxp(3CW), ldexp(3CW).