flog
Find the logarithm of a value
Description
Float:flog( Float:value, Float:base=10.0 )
Find the logarithm of the given value, using the given base. By default flog returns log10.
To return the natural logarithm, use flog( value, E )
.
Parameters
value | input value |
base | base (optional, default is 10) |
Return value
Returns the logarithm of value
using the given base.
Example usage
new Float:x; x = flog( 100 ); // 2 x = flog( 100, E ); // 4.60517