log2
Returns the base 2 logarithm of the receiver.
API Reference
Signature
Parameters
Returns
Returns a new Arith instance. The receiver is not modified.
Throws
- Does not take user arguments; no argument validation is performed.
Agent Contract
Agent Notes
- Prefer
log2()overlog(2)when base 2 is conceptually important. - Do not generate
ln. - Treat
Arithinstances as immutable.