Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - log10() return the base 10 logarithm of a numeric http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 log10()             Return the base 10 logarithm of a numeric
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func dbl log10 extern
   param value dbl eNumber

 Arguments
   eNumber is a numeric expression.

 Return
   The base 10 logarithm of the passed numeric.

 Description
   The log10() function returns the base 10 logarithm of eNumber.
   Upon function return the value of the __matherror system variable can
   be tested for error values.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_log10
   ? log10(     0 )          // prints DBL_MAX
   ? log10(    10 )          // prints 1.0
   ? log10(   100 )          // prints 2.0
   ? log10(  1000 )          // prints 3.0
   ? log10( 10000 )          // prints 4.0
   endproc

   proc main
   Test_log10()
   endproc

See Also: ln() log()

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