Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->ldexp() ldexpl()

Summary

#include <math.h>
    
double ldexp(double x, int exp)Compute value from mantissa and exponent
long double ldexpl(long double x, int exp)Compute value from mantissa and exponent to long double precision

Parameter
    
xFloating point value
expInteger exponent

Description

These functions multiply the floating point value of x by an integral power of 2.

Return

These functions return the value of x times 2 raised to the power exp.