SafeMath.add(a, b) pure
771602f7
Adds two numbers, throws on overflow.
Inputs
type | name | description |
---|---|---|
uint256 | a | First addend |
uint256 | b | Second addend |
Outputs
type | name | description |
---|---|---|
uint256 | result | Returns summation |
SafeMath.div(a, b) pure
a391c15b
Integer division of two numbers, truncating the quotient.
Inputs
type | name | description |
---|---|---|
uint256 | a | Dividend |
uint256 | b | Divisor |
Outputs
type | name | description |
---|---|---|
uint256 | result | Returns quotient |
SafeMath.sub(a, b) pure
b67d77c5
Subtracts two numbers, throws on underflow.
Inputs
type | name | description |
---|---|---|
uint256 | a | Subtrahend |
uint256 | b | Minuend |
Outputs
type | name | description |
---|---|---|
uint256 | result | Returns difference |
SafeMath.mul(a, b) pure
c8a4ac9c
Multiplies two numbers, throws on overflow.
Inputs
type | name | description |
---|---|---|
uint256 | a | Multiplier |
uint256 | b | Multiplicand |
Outputs
type | name | description |
---|---|---|
uint256 | result | Returns product |