SCALBN(3) NEWLIB SCALBN(3)NAME
1.50 `scalbn', `scalbnf', `scalbln', `scalblnf'-scale by power of
FLT_RADIX (=2)
SYNOPSIS
#include <math.h>
double scalbn(double X, int N);
float scalbnf(float X, int N);
double scalbln(double X, long int N);
float scalblnf(float X, long int N);
DESCRIPTION
The `scalbn' and `scalbln' functions compute X times FLT_RADIX to the
power N. efficiently. The result is computed by manipulating the
exponent, rather than by actually performing an exponentiation or mul‐
tiplication. In this floating-point implementation FLT_RADIX=2, which
makes the `scalbn' functions equivalent to the `ldexp' functions.
RETURNS
X times 2 to the power N. A range error may occur.
PORTABILITY
ANSI C, POSIX
*See Also*
`ldexp'
SEE ALSOscalbn is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 SCALBN(3)