Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | math
m (Text replace - "{{params}}" to "===Parameters===")
m (Text replace - "{{returns}}" to "===Return value===")
Line 23: Line 23:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{returns}}
+
===Return value===
  
 
base {{cpp|10}} logarithm of {{tt|arg}}.  
 
base {{cpp|10}} logarithm of {{tt|arg}}.  

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

Template:see also

Template:cpp/numeric/math/dcl list logTemplate:cpp/numeric/math/dcl list pow