LDEXPH 3CW "05 January 2007" "mathcw-1.00"

Table of contents


NAME

ldexphf, ldexph, ldexphl, ldexphw, ldexphq, ldexphll, ldexphdf, ldexphd, ldexphdl, ldexphdll - load base-16 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 ldexphf (float x, int n);

extern double ldexph (double x, int n);

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

extern __float80 ldexphw (__float80 x, int n);

extern __float128 ldexphq (__float128 x, int n);

extern long_long_double ldexphll (long_long_double x, int n);

extern decimal_float ldexphdf (decimal_float x, int n);

extern decimal_double ldexphd (decimal_double x, int n);

extern decimal_long_double ldexphdl (decimal_long_double x, int n);

extern decimal_long_long_double ldexphdll (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 sixteen to the power of the second argument exactly when the floating-point base is 2, 4, or 16. For base 8 or 10, the result is approximate.

RETURN VALUES

x * 16**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), ldexpo(3CW), logb(3CW).