Log base 2 of a number is also known as the binary logarithm. It is given as the number of times 2 should be multiplied to give the X. For example log base 2 of 4 is equal to 2.
Binary Logarithm is commonly used in computer science to represent data storage sizes, data transfer speeds and other advanced algorithmic complexities. To know more about binary log refer to wikipedia.
Formula : log2X = 2 y
Let's see a Log Base 2 example : if X = 64, so log base 2 of 64 would be 6. As 2 x 2 x 2 x 2 x 2 x 2 = 64. Or otherwise we can write 26 = 64.