Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 216 Bytes

abs.md

File metadata and controls

17 lines (11 loc) · 216 Bytes

abs

Signature

function abs(int256 a) internal pure returns (uint256)

Description

Returns the absolute value of a number.

Example

uint256 ten = stdMath.abs(-10);