std::log10
From cppreference.com
Template:cpp/numeric/math/sidebar 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 class="t-dcl-nopad">float log10( float arg );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">double log10( double arg );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">long double log10( long double arg );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Computes the common (base Template:cpp) logarithm of arg
.
Parameters
arg | - | floating point value |
Return value
base Template:cpp logarithm of arg
.
Domain error occurs if arg
is negative. Template:cpp is returned in that case.
Range error occurs if arg
is Template:cpp. Template:cpp is returned in that case.