* remove Math.min64 and Math.max64 * refactor Math tests to use return values * enhance Math coverage
17 lines
316 B
Solidity
17 lines
316 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
|
|
/**
|
|
* @title Math
|
|
* @dev Assorted math operations
|
|
*/
|
|
library Math {
|
|
function max(uint256 _a, uint256 _b) internal pure returns (uint256) {
|
|
return _a >= _b ? _a : _b;
|
|
}
|
|
|
|
function min(uint256 _a, uint256 _b) internal pure returns (uint256) {
|
|
return _a < _b ? _a : _b;
|
|
}
|
|
}
|