Table of Contents

Start Functions Events Constants Types Language Articles

Function: llLog

float llLog(float arg)

Returns the natural logarithm of the argument. The natural logarithm is a logarithm in base e (the Euler constant, which is approximately 2.7182818).

Parameters

arg

The float value whose natural logarithm is to be calculated.

Return value

Returns a float which is the natural logarithm of the argument.

Notes

Short examples

float f;
f = llLog(2.7182818); // sets f to 1 approx.
f = llLog(1);   // sets f to 0
f = llLog(2);   // sets f to 0.693147 approx.
f = llLog(0.5); // sets f to -0.693147 approx.
f = llLog(-1);  // sets f to 0
f = llLog(8)*1.44269504; // sets f to 3 approx.

See also