OAR

RTEMS GNU Tools On-Line Library


ldexp

PREV UP NEXT Bookshelf

1.20: ldexp, ldexpf---load exponent

Synopsis

#include <math.h>
double ldexp(double val, int exp);
float ldexpf(float val, int exp);

Description
ldexp calculates the value val times 2 to the power exp. ldexpf is identical, save that it takes and returns float rather than double values.


Returns
ldexp returns the calculated value.

Underflow and overflow both set errno to ERANGE. On underflow, ldexp and ldexpf return 0.0. On overflow, ldexp returns plus or minus HUGE_VAL.


Portability
ldexp is ANSI, ldexpf is an extension.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.