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

Functions

double ldexp (double x, int exp)
 Generate value from significand and exponent. More...
 

Function Documentation

◆ ldexp()

double ldexp ( double  x,
int  exp 
)

Generate value from significand and exponent.

The ldexp 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 ldexp functions return x * 2^exp.