
LOG function for c++
could somebody throw out a function for LOG i know like exponents its in the mathematical function library but i searched and cant seem to find any useful info on it
any help would be great
thanks
Matt
oh yea im still pretty green so please try and make it understandable

here is an example of log10 in cmath:
Code:
#include <iostream>
#include <cmath>
int main() {
int x = 8;
double y = 0;
y = log10(x);
std::cout << y << std::endl;
std::cin.get();
return 0;
}
if you remove the 10 for log10, it will be log, and that represents natural log, while log10 represents the common log.