Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | math
m (Text replace - "{{params}}" to "===Parameters===")
m (Text replace - "{{returns}}" to "===Return value===")
Line 33: Line 33:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{returns}}
+
===Return value===
  
 
returns {{tt|x&times;FLT_RADIX<sup>exp</sup>}}
 
returns {{tt|x&times;FLT_RADIX<sup>exp</sup>}}

Revision as of 17:49, 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.

Template:see also

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