SCALB
NAME
scalb, scalbf, scalbl, scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl -
multiply floating-point number by integral power of radix
SYNOPSIS
#include <math.h>
I double scalb(double x , double exp );
I float scalbf(float x , double exp );
I long double scalbl(long double x , double exp );
I double scalbn(double x , int exp );
I float scalbnf(float x , int exp );
I long double scalbnl(long double x , int exp );
I double scalbln(double x , long int exp );
I float scalblnf(float x , long int exp );
I long double scalblnl(long double x , long int exp );
Link with -lm.
DESCRIPTION
These functions multiply their first argument
x
by
FLT_RADIX
(probably 2) to the power
R exp .
If
FLT_RADIX
equals 2, then
R scalbn ()
is equivalent to
ldexp(3).
The value of
FLT_RADIX
is found in
R <float.h> .
CONFORMING TO
The
R scalb ()
function is from 4.3BSD.
The
R scalbn ()
and
R scalbln ()
functions are from C99.
All three are in POSIX.1-2001.
The
R scalb ()
function is marked obsolescent.
SEE ALSO