Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

log2

Calculates the base-2 logarithm: log₂(x)

Panics

Panics if a is zero or negative.

Gas Cost

~190,000 (f128)

Fully qualified path: cairo_fp::f128::math::ops::log2

fn log2(a: Fixed) -> Fixed