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

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

Details

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

Synopsis

$log2(N)

Parameters

  • N - Number for which to return its common logarithm

Properties

None

Example

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

Compatibility

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