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

Table of contents


NAME

ldexpof, ldexpo, ldexpol, ldexpow, ldexpoq, ldexpoll, ldexpodf, ldexpod, ldexpodl, ldexpodll - load exponent of a floating-point number

SYNOPSIS

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

#include <mathcw.h>

extern float ldexpof (float x, int n);

extern double ldexpo (double x, int n);

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

extern __float80 ldexpow (__float80 x, int n);

extern __float128 ldexpoq (__float128 x, int n);

extern long_long_double ldexpoll (long_long_double x, int n);

extern decimal_float ldexpodf (decimal_float x, int n);

extern decimal_double ldexpod (decimal_double x, int n);

extern decimal_long_double ldexpodl (decimal_long_double x, int n);

extern decimal_long_long_double ldexpodll (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 the product of the first argument and eight to the power of the second argument exactly when the floating-point base is 2 or 8. For base 4, 10, and 16, the operation is approximate.

Use the companion ldexph() function family for base-16 systems.


RETURN VALUES

Return x * 8**n.

ERRORS

If the first argument is +Infinity, -Infinity, or a NaN, the result is that argument. If the product would overflow, the result is Infinity with the sign of the first argument. However, errno is never set.

SEE ALSO

frexp(3CW), frexph(3CW), frexpo(3CW), ldexp(3CW), ldexph(3CW), logb(3CW).