Built-in functions: math_log10()
The function math_log10() calculates base 10 logarithm.
Declaration
float math_log10( float aValue )
Parameters
aValue
The value to calculate the logarithm.
Discussion
The function math_log10() calculates the base 10 logarithm of the given value aValue. For example:
var float x1 = math_log10( 1.0 ); // x1 = 0.0 var float x2 = math_log10( 10.0 ); // x2 = 1.0 var float x3 = math_log10( 1000.0 ); // x3 = 3.0
Passing a negative value causes the function to return a Not a Number (NaN) value. Passing 0 (zero) causes the function to return Negative Infinity value. See also float_nan() and float_infn().