语法:
#include <cmath>
double ldexp( double num, int exp );
ldexp() 返回 num * (2 ^ exp). 注意:如果发生溢出,将返回HUGE_VAL 。
C++ 提供了下列重载形式:
#include <cmath>
float ldexp( float num, int exp ); // same as ldexpf() in C99
long double ldexp( long double num, int exp ); // same as ldexpl() in C99
相关主题: frexp, modf