ezeio2:scriptref:flog

This is an old revision of the document!


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
  • ezeio2/scriptref/flog.1574119287.txt.gz
  • Last modified: 2019-11-18 23:21
  • by andreh