Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - log10 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   log10

   Usage
   #include <math.h>
   double log10(double x);

   Description
   log10 returns the logarithm base ten of x. (x must be > 0).

   Example
   #include <math.h>
   #include <stdio.h>

   main(int argc,char **argv)
   {
   double d,result;
        d = atof(argv[1]);
        result = log10(d);
        printf("The log10 of %.2f is %f\n",d,result);
   }

   Return Value
   The log10 function returns the logarithm result or domain error if x <
   0, range error if  x == 0.


See Also: exp log pow sqrt

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson