The float value whose logarithm in base 10 is to be calculated.
Returns a float with the logarithm in base 10 of the argument.
llLog
can be used.llLog
.llPow(10, power)
. But if you want to raise 10 to an integer constant, better use scientific notation, for example 1e32
means 10 to the 32nd power (1032). See float for a description of scientific notation.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