Questions tagged [modular-arithmetic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
3answers
203 views

How does solidity handle mod 0?

Imagine you have a function like this: function compute(uint256 a, uint256 b) external pure returns (uint256) { return a % b; } Does it revert when b is 0?