LOG2E

Try it yourself:


LOG2E: base-2 logarithm of e

LOG2E is log₂(e), a conversion factor useful in binary information and exponential models.

Use

It converts log() results to base 2. Use pow() for inverse exponent relations and LN2 for the reciprocal conversion.

Caveat

Use it as a dimensionless constant, and validate real log inputs with isPositive().

Use LOG2E in a calculation

Enter LOG2E on a calculator line to see its built-in value, or place the name inside a longer expression. Keep any displayed unit attached when converting or combining physical quantities, and check that every other value uses a compatible dimension.

The example above is editable, so you can replace surrounding values and test the constant in your own formula. Browse all constants to compare related values and notation.

All constants