evm_ceil_div
Ceiling division: (x + y - 1) / y. Rounds up to ensure no remainder. If y is 0, the function errors with: Division by zero in evm_ceil_div.
Example
Runs locally
{"id":"sample_r55kre","title":"Sample"}
API reference
evm_ceil_div(UINT256, UINT256) #
Divides UINT256 x by y and rounds up when there is a remainder. If y is 0, the function errors with: Division by zero in evm_ceil_div.