log10()
function.
log10(x)
x = input number
#include <stdio.h>
#include <math.h>
int main(void){
double x,ret;
x=2.7;
ret=log10(x);
printf("log10(%.2f)=%.2f", x,ret);
return 0;
}
The above code will give this output.
log10(2.70)= 0.43