ldexpf


Multiply a floating-point number and an integral power of 2

[Classification]

Mathematical library

[Syntax]

#include <math.h>

float __far ldexpf(float val, int exp);

[Return value]

Returns the value calculated byval x 2 exp.

When val is a Not-a-Number (NaN), ldexpf returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno.

If an underflow or overflow occurs as a result of executing ldexpf, it sets macro ERANGE to global variable errno. If an underflow occurs, ldexpf returns an denormal number. If an overflow occurs, it returns ∞.

[Description]

Multiply a floating-point number and an integral power of 2.