log

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

log(number) → returns numeric

Argument Reference

number numeric
Required

Examples
Sample code invoking the log function

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

log(3.1)

Expected Result: 1.131402111491

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub