Calculates the natural logarithm of a number. Natural
logarithms are based on the constant e (2.71828182845904).

log(number) → returns Numeric

Argument Reference for the log function


Required: Yes

Examples sample code invoking the log function

logarithm of 3.1

There will be a precision difference between running the some code on Linux or Windows


Expected Result: 1.131402111491

Fork me on GitHub