Namespaces
Variants
Views
Actions

std::log10

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 13:36, 10 November 2011 by Cubbi (Talk | contribs)

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 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.

See also

Template:cpp/numeric/math/dcl list logTemplate:cpp/numeric/math/dcl list powTemplate:cpp/numeric/complex/dcl list log10Template:cpp/numeric/valarray/dcl list log10