SafeMath

Git Source

Functions

add

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

sub

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

sub

function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256);

mul

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

div

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

div

function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256);

mod

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

mod

function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256);

sqrrt

function sqrrt(uint256 a) internal pure returns (uint256 c);