BSD 4_4 development
[unix-history] / usr / share / man / cat3 / ldexp.0
LDEXP(3) BSD Programmer's Manual LDEXP(3)
N\bNA\bAM\bME\bE
l\bld\bde\bex\bxp\bp - mutliply floating-point number by integral power of 2
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<m\bma\bat\bth\bh.\b.h\bh>\b>
_\bd_\bo_\bu_\bb_\bl_\be
l\bld\bde\bex\bxp\bp(_\bd_\bo_\bu_\bb_\bl_\be _\bx, _\bi_\bn_\bt _\be_\bx_\bp);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The l\bld\bde\bex\bxp\bp() function multiplies a floating-point number by an integral
power of 2.
R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS
The l\bld\bde\bex\bxp\bp() function returns the value of _\bx times 2 raised to the power
_\be_\bx_\bp.
If the resultant value would cause an overflow, the global variable _\be_\br_\br_\bn_\bo
is set to ERANGE and the value HUGE is returned.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
frexp(3), modf(3), math(3)
S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
The l\bld\bde\bex\bxp\bp() function conforms ANSI C X3.159-1989 (``ANSI C '').
4.4BSD June 4, 1993 1