Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math/scalbn"

From cppreference.com
< cpp‎ | numeric‎ | math
m (Text replace - "{{returns}}" to "===Return value===")
m (Text replace - "{{see also}}" to "===See also===")
Line 40: Line 40:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{see also}}
+
===See also===
  
 
{{dcl list begin}}
 
{{dcl list begin}}

Revision as of 18:02, 2 August 2011

Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
float       scalbn( float x, int exp );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
double      scalbn( double x, int exp );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
long double scalbn( long double x, int exp );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
float       scalbln( float x, long exp );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
double      scalbln( double x, long exp );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
long double scalbln( long double x, long exp );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> Template:ddcl list end

Multiplies an floating point value x by Template:cpp raised to power exp. On binary system it is equivalent to ldexp()

Parameters

arg - floating point value
exp - integer value

Return value

returns x×FLT_RADIXexp

If the result is too large for the underlying type, range error occurs and Template:cpp is returned.

See also

Template:cpp/numeric/math/dcl list frexpTemplate:cpp/numeric/math/dcl list ldexp