Manual browser: ldexp(3)
LDEXP(3) | Library Functions Manual | LDEXP(3) |
NAME
ldexp, ldexpf — multiply floating-point number by integral power of 2LIBRARY
Math Library (libm, -lm)DESCRIPTION
The ldexp() family of functions compute
x * 2^ exp
for a real floating-point number x.
RETURN VALUES
The functions return the value of x times 2 raised to the power exp. Otherwise the following may occur:- If x is NaN, a NaN is returned.
- If exp is zero or x is either ± 0 or ±∞, x is returned.
- If the call would cause an overflow, a range error occurs and either ±HUGE_VAL, ±HUGE_VALF, or ±HUGE_VALL is returned, depending on the sign of x and the type of the return value.
- If an underflow would be caused by the correct value, and the value is not representable, either 0.0 or an implementation-defined value is returned.
STANDARDS
The described functions conform to ISO/IEC 9899:1999 (“ISO C99”).September 18, 2011 | NetBSD 7.0 |