delta
Signature
function delta(uint256 a, uint256 b) internal pure returns (uint256)
function delta(int256 a, int256 b) internal pure returns (uint256)
Description
Returns the difference between two numbers in absolute value.
Example
uint256 four = stdMath.delta(-1, 3);