Name

ldexp function — Makes floating point from binary fraction and exponent

Synopsis

float ldexp(float frac, int exp)
double ldexp(double frac, int exp)
long double ldexp(long double frac, int exp)

The ldexp function returns a floating-point number that it constructs from a fractional part and an exponent (base 2). The return value is frac × 2exp.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.