Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

log base c++

int intlog(double base, double x) {
    return (int)(log(x) / log(base));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #log #base
ADD COMMENT
Topic
Name
9+7 =