Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>log()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LOG()


Syntax:     LOG(<expN>)

Purpose:    To calculate the natural logarithm of a numeric expression.

Argument:   <expN> is a number greater than zero to convert to its
            natural logarithm.

Returns:    A numeric value.

            Specifying a number less than or equal to zero returns a
            numeric overflow (a row of asterisks).

Usage:      The natural logarithm has a base of e which is 2.7183.  The
            LOG() function returns "x" in the following equation:

            e**x = y

            "y" is the specified numerical expression.  Due to
            mathematical rounding, the values returned by LOG() and
            EXP() may not agree exactly.

            LOG() is the inverse of the EXP() function.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   ? LOG(10)                     && Result: 2.30
   ? LOG(10 * 2)                 && Result: 3.00
   ? EXP(LOG(1))                 && Result: 1.00
   ? LOG(2.71)                   && Result: 1.00


See Also: SET DECIMALS SET FIXED EXP()

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