Table of Contents

Start Functions Events Constants Types Language Articles

Function: llLog10

float llLog10(float arg)

Returns the logarithm in base ten of the argument.

Parameters

arg

The float value whose logarithm in base 10 is to be calculated.

Return value

Returns a float with the logarithm in base 10 of the argument.

Notes

Short examples

float f;
f = llLog10(10); // sets f to 1
f = llLog10(1);   // sets f to 0
f = llLog10(2);   // sets f to 0.301030 approx.
f = llLog10(0.5); // sets f to -0.301030 approx.
f = llLog10(-1);  // sets f to 0

See also