![]() |
VOOZH | about |
The std::log() in C++ is a built-in function that is used to calculate the natural logarithm (base e) of a given number. The number can be of any data type i.e. int, double, float, long long. It is defined inside the <cmath> header file.
2.3979 -0.693147 0 -inf inf nan
std::log(n);