# Function Reference

Log

Calculates the natural logarithm of a number.

Log ( expression )

Parameters

expression | Any positive number.

Return Value

Success: | Returns the parameter's natural logarithm.
Failure: | Tends to return -1.#IND for non-positive parameters.

Remarks

@error is always 0

Related

Exp

Example

$x = Log(1000) ;returns 6.90775527898214
$y = Log10(1000) ;returns 3
; user-defined function for common log
Func Log10($x)
Return Log($x) / Log(10) ;10 is the base
EndFunc