Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
scalblnf(3) Guardian Native C Library Calls Reference Manual
NAME
scalblnf - Computes the long integral exponent of a radix-independent float 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>
float scalblnf(
float x,
long int n
);
PARAMETERS
x Is the float value to be multiplied.
n Is the long integral exponent of the radix.
DESCRIPTION
The scalblnf() function is a float version of the scalbln( ) function; it takes a float first argument
and returns a float result.
The scalblnf() 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 scalblnf() and scalbnf() is that the value of n is long int for scalblnf( ),
instead of int for scalbnf().
When r is 2, the scalblnf( ) function is equivalent to the ldexpf() 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, scalbnf() 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 scalbnf() function returns +HUGE_VALF or -
HUGE_VALF (according to the sign of x ) and sets errno to [ERANGE].
If the correct value would cause underflow, the scalbnf() function returns 0.0 (zero) and sets
errno to [ERANGE].
ERRORS
If any of the following conditions occurs, the scalbnf() function sets errno to the corresponding
value:
[ERANGE] The result would cause underflow or overflow.
6−6 Hewlett-Packard Company 527192-018