LowGasSafeMath
Last updated
Last updated
Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost
Returns x + y, reverts if sum overflows uint256
Parameters:
x
uint256
The augend
y
uint256
The addend
Return Values:
z
uint256
The sum of x and y
Returns x - y, reverts if underflows
x
uint256
The minuend
y
uint256
The subtrahend
z
uint256
The difference of x and y
Returns x * y, reverts if overflows
x
uint256
The multiplicand
y
uint256
The multiplier
z
uint256
The product of x and y
Returns x + y, reverts if overflows or underflows
x
int256
The augend
y
int256
The addend
z
int256
The sum of x and y
Returns x - y, reverts if overflows or underflows
x
int256
The minuend
y
int256
The subtrahend
z
int256
The difference of x and y
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values: