Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
scalbln(3) Guardian Native C Library Calls Reference Manual
NAME
scalbln - Computes the long integral exponent of a radix-independent floating-point number
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <math.h>
double scalbln(
double x,
long int n
);
PARAMETERS
x Is the double value to be multiplied.
n Is the long integral exponent of the radix.
DESCRIPTION
The scalbln( ) function calculates the value of x * r
n
, for long integral values of n, where r is the
radix of the machine’s floating-point arithmetic.
The difference between scalbln() and scalbn() is that the value of n is long int for scalbln( ),
instead of int for scalbn().
When r is 2, the scalbln( ) function is equivalent to the ldexp() function.
NOTES
This function is implemented only for the IEEE_float floating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
Upon successful completion, scalbln( ) returns the value of x * r
n
.
If the value of x is Nan, NaN is returned.
If the value of x is positive or negative zero or positive or negative infinity, x is returned.
If the value of n is 0 (zero), x is returned.
If the result would cause overflow, the scalbln( ) function returns +HUGE_VAL or -
HUGE_VAL (according to the sign of x ) and sets errno to [ERANGE].
If the correct value would cause underflow, the scalbln( ) function returns 0.0 (zero) and sets
errno to [ERANGE].
ERRORS
If any of the following conditions occurs, the scalbln( ) function sets errno to the corresponding
value:
[ERANGE] The result would cause underflow or overflow.
RELATED INFORMATION
Functions: ilogb(3), ldexp(3), logb(3), scalb(3), scalbn(3), scalblnf(3), scalblnl(3).
Files: math(4).
6−4 Hewlett-Packard Company 527192-018