log10() : log of a number to the base 10

We will get log value of any number with base 10 by using log10() function.
log10(x) 
x = input number

Example

#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
Your Rating




Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer