C++ Programming/Code/Standard C Library/Functions/log10

< C++ Programming < Code < Standard C Library < Functions

log10

Syntax
#include <cmath>
double log10( double num );

The log10() function returns the base 10 (or common) logarithm for num. There will be a domain error if num is negative and a range error if num is zero.

Related topics
log
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.