CarefulMath
MathError
enum MathError {
NO_ERROR,
DIVISION_BY_ZERO,
INTEGER_OVERFLOW,
INTEGER_UNDERFLOW
}mulUInt
function mulUInt(uint256 a, uint256 b) internal pure returns (enum CarefulMath.MathError, uint256)divUInt
function divUInt(uint256 a, uint256 b) internal pure returns (enum CarefulMath.MathError, uint256)subUInt
addUInt
addThenSubUInt
min
max
MAXUINT
MAXUINT96
MAXUINT24
Was this helpful?