Blog

Short, useful notes on log base 2, binary math and real-world applications.

What is log₂(x)?

A clear introduction to binary logarithms, bit length and powers of two.

Read

Antilog base 2 (2^y)

Move back from logarithms to the original number using powers of two.

Read

Bit length & MSB explained

How floor(log₂ n) + 1 gives you the number of bits you need to encode n.

Read