ldexp

Returns its first argument multiplied by 2 raised to the power of its second argument; that is, x(2n) .

Format

#include  <math.h>

double ldexp  (double x, int n);

Arguments

x
A base value of type double that is to be multiplied by 2n .
n
The integer exponent value to which 2 is raised.

Return Values
x(2n)   The first argument multiplied by 2 raised to the power of the second argument. 
Indicates underflow; errno is set to ERANGE. 
HUGE_VAL  Indicates overflow; errno is set to ERANGE. 


Previous Page | Next Page | Table of Contents | Index