qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
LOG Function Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
LOG Function Details
 
Syntax
  LOG(numeric-expression)
 
The numeric expression, n, must be greater than zero.
 
The natural logarithm is the logarithm to the base e. The constant
e is approximately equal to 2.718282.
 
The LOG function calculates the natural logarithm with single-
precision accuracy, unless the argument n is a double-precision value.
In this case LOG is calculated with double-precision accuracy.
 
You may calculate base-10 logarithms by dividing the natural logarithm
of the number by the logarithm of 10. The following FUNCTION
calculates base-10 logarithms:
 
  FUNCTION Log10(X) STATIC
     Log10=LOG(X)/LOG(10.#)
  END FUNCTION