C++ Programming/Code/Standard C Library/Functions/ldexp

From Wikibooks, open books for an open world
Jump to navigation Jump to search

ldexp[edit | edit source]

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

The ldexp() function returns num * (2 ^ exp). And get this: if an overflow occurs, HUGE_VAL is returned.

Related topics
frexp - modf