Base 2

Uses Math.log2.

FAQ

What is log₂(x) here?

Base-2 logarithm log₂(x) = ln(x) / ln(2) via Math.log2, defined for x > 0 only.

Does the decimal separator matter?

This calculator uses plain decimal numbers. If a result looks wrong, check whether you used a comma instead of a dot (or vice versa) where the field expects one.