x | positiver, reeller Logarithmand |
Rückgabewert: die Zahl, für die pow(10, Zahl) == x
.
Bei negativem x wird errno auf EDOM
gesetzt,
bei x==0
auf ERANGE
.
#include <cmath> #include <iostream> int main() { std::cout << "log10(100) = " << std::log10(100) << '\n'; }