UnsafeMath

Contains methods that perform common math functions but do not do any overflow or underflow checks

divRoundingUp

function divRoundingUp(uint256 x, uint256 y) internal pure returns (uint256 z)

Returns ceil(x / y)

division by 0 has unspecified behavior, and must be checked externally

Name Type Description
x uint256 The dividend
y uint256 The divisor
Name Type Description
z uint256 The quotient, ceil(x / y)

UnsafeMath

Contains methods that perform common math functions but do not do any overflow or underflow checks

divRoundingUp

function divRoundingUp(uint256 x, uint256 y) internal pure returns (uint256 z)

Returns ceil(x / y)

division by 0 has unspecified behavior, and must be checked externally

Name Type Description
x uint256 The dividend
y uint256 The divisor
Name Type Description
z uint256 The quotient, ceil(x / y)