Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HMath

Git Source

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

NameTypeDescription
auint256First value to compare.
buint256Second value to compare.

Returns

NameTypeDescription
<none>uint256The smaller of a and b.

max

Returns the larger of two values.

function max(uint256 a, uint256 b) internal pure returns (uint256);

Parameters

NameTypeDescription
auint256First value to compare.
buint256Second value to compare.

Returns

NameTypeDescription
<none>uint256The larger of a and b.