Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tech.ramses.xyz/llms.txt

Use this file to discover all available pages before exploring further.

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

Functions

divRoundingUp

  function divRoundingUp(
    uint256 x,
    uint256 y
  ) internal pure returns (uint256 z)
Returns ceil(x / y) panics if y == 0

Parameters:

NameTypeDescription
xuint256The dividend
yuint256The divisor

Return Values:

NameTypeDescription
zuint256The quotient, ceil(x / y)