log

Calculates the logarithm of a positive number. 

Function

result = log(input, [base])

Arguments

ArgumentData Type
inputnumeric
basenumeric (optional)
resultdecimal

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 */