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 - log() return the natural logarithm of a numeric http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 log()               Return the natural logarithm of a numeric
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func dbl log extern
   param value dbl eNumber

 Arguments
   eNumber is a numeric expression.

 Return
   The natural logarithm of the passed numeric.

 Description
   The log() function returns the natural logarithm of eNumber. It
   performs identically to the ln() function, and is included for
   compatibility with other programming languages.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_log
   set fixed on
   ? log( 10 )                // prints 2.30
   ? exp( log( 1 ) )          // prints 1.00
   ?
   set fixed off
   ? log( 10 )
   ? exp( log( 1 ) )
   ? log( 10 * 2 )
   ? log( 2.71 )
   endproc

   proc main
   Test_log()
   endproc

See Also: ln()

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