Answers for "log function in c++ with base"

C++
6

log base c++

int intlog(double base, double x) {
    return (int)(log(x) / log(base));
}
Posted by: Guest on September-14-2020

Browse Popular Code Answers by Language