Calculates the logarithm of a positive number.
Function
result = log(input, [base])
Arguments
Argument | Data Type |
input | numeric |
---|---|
base | numeric (optional) |
result | decimal |
Comments
Perform a natural logarithm (base 'e') if the base is not specified. Zero and negative inputs evaluate to null.
Examples
result = log(1000) /* result = 6/9077.... */
result = log(1000,10) /* result = 3 */