Progress
Language Reference
LOG Function
Calculates the logarithm of an expression using a specified base.
SYNTAX
expression
A decimal expression that you want the logarithm of.
base
A numeric expression that is the base you want to use. If you do not specify a base, LOG returns the natural logarithm, base (e). The base must be greater than 1.
EXAMPLEThis procedure prompts the user for a base and a number, and then displays the log of the number. The VALIDATE option on the UPDATE statement ensures that the user enters a base value greater than 1 and a number greater than 0.
NOTES
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |