Answers for "log to any base in c++"

C++
6

log base c++

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

log base 10 c+_+

double log10(double x)
Posted by: Guest on June-11-2020

Browse Popular Code Answers by Language