Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

math

Fully qualified path: openzeppelin_utils::math

Free functions

averageReturns the average of two unsigned integers. The result is rounded down.
u256_mul_divReturns the quotient of x * y / denominator and rounds up or down depending on rounding . Uses wide_mul and u512_safe_div_rem_by_u256 for precision. Requirements:…

Enums

Traits

UnsignedA trait to represent unsigned integers.