scalbn(3M)
NAME
scalbn − load exponent of a radix-independent floating-point number
SYNOPSIS
cc [ flag ... ] file ... −lm [ library ... ]
#include <math.h>
double scalbn(double x, int n);
DESCRIPTION
The scalbn() function computes x ∗ rn, where r is the radix of the machine’s floating point arithmetic.
RETURN VALUES
Upon successful completion, the scalbn() function returns x ∗ rn.
If the correct value would overflow, scalbn() returns ±HUGE_VAL (according to the sign of x).
The scalbn() function returns x when x is ±Inf.
If x is NaN, then scalbn() returns NaN.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | MT-Safe |
SEE ALSO
SunOS 5.6 — Last change: 29 Dec 1996