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

< C++ Programming < Code < Standard C Library < Functions

ldexp

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
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.