Whatever message this page gives is out now! Go check it out!

Log

Last update:
May 18, 2026

Description

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

Returns

The natural logarithm of a number.

Category

Function syntax

Log(number)

See also

Exp, Log10

Parameters

Parameter
Description
number
Positive real number for which to calculate the natural logarithm

Example

<cfscript>
    val=5
    writeOutput("Log of " & val &  " is: " & log(val))
</cfscript>
Output
Log of 5 is: 1.60943791243

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page