abs
Calculates the absolute value of x.
*Requirements:
- x must be greater than
MIN_SD49x28
.*
function abs(SD49x28 x) pure returns (SD49x28 result);
Parameters
Name | Type | Description |
---|---|---|
x | SD49x28 | The SD49x28 number for which to calculate the absolute value. |