Namespaces
Variants
Views
Actions

std::log10

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 08:25, 23 January 2014 by Cubbi (Talk | contribs)

 
 
 
Common mathematical functions
Functions
Basic operations
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Exponential functions
(C++11)
(C++11)
log10
(C++11)
(C++11)
Power functions
(C++11)
(C++11)
Trigonometric and hyperbolic functions
(C++11)
(C++11)
(C++11)
Error and gamma functions
(C++11)
(C++11)
(C++11)
(C++11)
Nearest integer floating point operations
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Floating point manipulation functions
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
Classification/Comparison
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Macro constants
(C++11)(C++11)(C++11)(C++11)(C++11)
 
Defined in header <cmath>
float       log10( float arg );
double      log10( double arg );
long double log10( long double arg );
double      log10( Integral arg );
(since C++11)

Computes the common (base 10) logarithm of arg.

Parameters

arg - value of floating-point or Integral type

Return value

Base 10 logarithm of 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.

See also

computes natural (base e) logarithm (to base e) (ln(x))
(function) [edit]
raises a number to the given power (xy)
(function) [edit]
complex common logarithm with the branch cuts along the negative real axis
(function template) [edit]
applies the function std::log10 to each element of valarray
(function template) [edit]
C documentation for log10