|Skip Navigation Links| |Exit Print View| |man pages section 3:
Extended Library Functions, Volume 2 Oracle Solaris 11.1
Information Library| - load exponent of a radix-independent
floating-point number c99 [ flag... ] file... -lm [ library... ]
#include <math.h> double scalb(double x, double n); float
scalbf(float x, float n); long double scalbl(long double x, long
double n); These functions compute x * rn, where r is the radix
of the machine's floating point arithmetic. When r is 2, scalb()
is equivalent to ldexp(3M). The value of r is FLT_RADIX which is
defined in <float.h>. Upon successful completion, the scalb()
function returns x * rn. If x or n is NaN, a NaN is returned. If
n is 0, x is returned. If x is ±Inf and n is not -Inf, x is
returned. If x is ±0 and n is not +Inf, x is returned. If x is
±0 and n is +Inf, a domain error occurs and a NaN is returned.
If x is ±Inf and n is -Inf, a domain error occurs and a NaN is
returned. If the result would cause an overflow, a range error
occurs and ±HUGE_VAL (