Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 649 Bytes

SignedConverter.md

File metadata and controls

33 lines (17 loc) · 649 Bytes

SignedConverter

A library to convert an unsigned integer to signed integer or signed integer to unsigned integer.

Functions:

  • uintToInt(uint256 a) (internal)

  • intToUint(int256 a) (internal)

Function uintToInt(uint256 a) → int256 internal

convert an unsigned integer to a signed integer

Parameters:

  • a: uint to convert into a signed integer

Return Values:

  • converted signed integer

Function intToUint(int256 a) → uint256 internal

convert a signed integer to an unsigned integer

Parameters:

  • a: int to convert into an unsigned integer

Return Values:

  • converted unsigned integer