From WikiChip
$log2 identifier - mIRC
< mirc‎ | identifiers

$log2 returns the common logarithm (base 2) of a number

Details[edit]

Note: for window logging please see /log /logview /loadbuf /savebuf $logdir $window().logfile

Synopsis[edit]

$log2(N)

Parameters[edit]

  • N - Number for which to return its common logarithm

Properties[edit]

None

Example[edit]

//echo -a except for precision rounding 2^ $log2(7) is 7
//echo -a $log2(7) is $log(7) / $log(2)

Compatibility[edit]

Added: mIRC v7.72
Added on: 27 Nov 2022
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See also[edit]