SCALBN(3) | Library Functions Manual | SCALBN(3) |
scalbn
, scalbnf
,
scalbnl
—
#include <math.h>
double
scalbn
(double
x, int n);
float
scalbnf
(float
x, int n);
long double
scalbnl
(long
double x, int
n);
scalbn
(), scalbnf
(), and
scalbnl
() functions compute x *
r^n, where r is the radix of the
machine's floating point arithmetic, defined by the
FLT_RADIX
constant in
<float.h>
. The rationale is
efficiency; r^n is not computed explicitly.
FLT_RADIX
. Otherwise the
following may occur:
±HUGE_VAL
,
±HUGE_VALF
, or
±HUGE_VALL
is returned according to the
sign of x and the return type of the corresponding
function.September 18, 2011 | NetBSD 9.0 |