# Minix Man Pages

home | helpLDEXP(3) BSD Library Functions Manual LDEXP(3)NAMEldexp,ldexpf-- multiply floating-point number by integral power of 2LIBRARYMath Library (libm, -lm)SYNOPSIS#include<math.h>doubleldexp(doublex,intexp);floatldexpf(floatx,intexp);DESCRIPTIONTheldexp() family of functions computex* 2^expfor a real floating-point numberx.RETURN VALUESThe functions return the value ofxtimes 2 raised to the powerexp. Otherwise the following may occur: 1. IfxisNaN, aNaNis returned. 2. Ifexpis zero orxis either +- 0 or +-<infinity>,xis returned. 3. 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 ofxand the type of the return value. 4. 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.SEE ALSOfrexp(3), math(3), modf(3)STANDARDSThe described functions conform to ISO/IEC 9899:1999 ("ISO C99"). BSD September 18, 2011 BSD

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | STANDARDS