abs

Git Source

Calculates the absolute value of x.

*Requirements:

  • x must be greater than MIN_SD49x28.*
function abs(SD49x28 x) pure returns (SD49x28 result);

Parameters

NameTypeDescription
xSD49x28The SD49x28 number for which to calculate the absolute value.