MicrOS
ldexpf.c File Reference
#include "../math.h"

Functions

float ldexpf (float x, int exp)
 Generate value from significand and exponent. More...
 

Function Documentation

◆ ldexpf()

float ldexpf ( float  x,
int  exp 
)

Generate value from significand and exponent.

The ldexpf functions multiply a floating-point number by an integral power of 2. A range error may occur.

Parameters
xGenerate value from significand and exponent
expValue of the exponent.
Returns
The ldexpf functions return x * 2^exp.