Math (Math.sol)
Last updated
Was this helpful?
Last updated
Was this helpful?
View Source:
Math
Assorted math operations
Returns the largest of two numbers.
Arguments
Name
Type
Description
a
uint256
b
uint256
Returns the smallest of two numbers.
Arguments
Name
Type
Description
a
uint256
b
uint256
Calculates the average of two numbers. Since these are integers, averages of an even and odd number cannot be represented, and will be rounded down.
Arguments
Name
Type
Description
a
uint256
b
uint256