HMath
Title: HMath
Author: Obiaraije Henry
Stateless numeric helpers shared across the Henriable contracts.
Functions
min
Returns the smaller of two values.
function min(uint256 a, uint256 b) internal pure returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
a | uint256 | First value to compare. |
b | uint256 | Second value to compare. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | The smaller of a and b. |
max
Returns the larger of two values.
function max(uint256 a, uint256 b) internal pure returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
a | uint256 | First value to compare. |
b | uint256 | Second value to compare. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | The larger of a and b. |