Table of Contents
Previous Section Next Section

ldexp

#include <cmath>float ldexp(float num, int exp);double ldexp(double num, int exp);
long double ldexp(long double num, int exp);

The ldexp( ) returns the value of num * 2exp. If overflow occurs, HUGE_VAL is returned.

Related functions are frexp( ) and modf( ).


Table of Contents
Previous Section Next Section