VMS Help
CRTL, scalb
*Conan The Librarian
|
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);
x
A nonzero floating-point number.
n
An integer.
The scalb functions return x*(2**n) for integer n.
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.