$log

From Scriptwiki
Revision as of 18:37, 11 May 2008 by Aca20031 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the natural (base e (approximately 2.71828183)) logarithm of a given number.

$log(N)
  • N is any number great than 0 (as imaginary numbers are not considered in mIRC)

Example

$calc(2.71828183^ $log(10)) = 9.9999999 (10)
$calc(($log(100) / $log(10))) = 2 (Essentially log base 10 of 100)