Log2

Public Function Log2(ByVal Number As Double) As Double

Returns the base 2 logarithm

SendDebug Log2(1) 'Prints 0, because 2^0 = 1
SendDebug Log2(256) 'Prints 8, because 2^8 = 256
SendDebug Log2(33) 'Prints 5.044394119358453

See also: