Difference between revisions of "cpp/numeric/math/log2"
From cppreference.com
(Updating "see also" listing.) |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 39: | Line 39: | ||
{{dcl list template | cpp/numeric/math/dcl list log10}} | {{dcl list template | cpp/numeric/math/dcl list log10}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/numeric/math/log2]] | ||
+ | [[es:cpp/numeric/math/log2]] | ||
+ | [[fr:cpp/numeric/math/log2]] | ||
+ | [[it:cpp/numeric/math/log2]] | ||
+ | [[ja:cpp/numeric/math/log2]] | ||
+ | [[pt:cpp/numeric/math/log2]] | ||
+ | [[ru:cpp/numeric/math/log2]] | ||
+ | [[zh:cpp/numeric/math/log2]] |
Revision as of 21:39, 2 November 2012
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >float log2( float arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >double log2( double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >long double log2( long double arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >double log2( Integral arg );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Computes the base 2 logarithm of arg.
Parameters
arg | - | floating point value |
Return value
log2(arg)
Domain error occurs if arg
is negative. NAN is returned in that case.
Range error occurs if arg
is 0. -HUGE_VAL is returned in that case.