Returns the exponent of a floating-point number.
This function is supported on OpenVMS Integrity servers and
Alpha only.
Format
#include <math.h>
double scalb (double x, double n);
float scalbf (float x, float n);
long double scalbl (long double x, long double n);
1 – Arguments
x
A nonzero floating-point number.
n
An integer.
2 – Description
The scalb functions return x*(2**n) for integer n.
3 – Return Values
x On successful completion, x*(2**n) is
returned.
HUGE_VAL On overflow, scalb returns HUGE_VAL (according
to the sign of x) and sets errno to ERANGE.
0 Underflow occurred; errno is set to ERANGE.
x x is Infinity.
NaN x or n is NaN; errno is set to EDOM.