UnsafeMath
Functionsโ
divRoundingUpโ
function divRoundingUp(
uint256 x,
uint256 y
) internal pure returns (uint256 z)Name
Type
Description
Name
Type
Description
Last updated
Contains methods that perform common math functions but do not do any overflow or underflow checks
function divRoundingUp(
uint256 x,
uint256 y
) internal pure returns (uint256 z)Returns ceil(x / y)
panics if y == 0
Parameters:โ
x
uint256
The dividend
y
uint256
The divisor
Return Values:โ
z
uint256
The quotient, ceil(x / y)
Last updated