Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 674 Bytes

File metadata and controls

22 lines (19 loc) · 674 Bytes

174 - OZ Math

OpenZeppelin Math: Standard math utilities missing in the Solidity language:

  1. max(uint256 a, uint256 b): Returns the larger of two numbers

  2. min(uint256 a, uint256 b): Returns the smaller of two numbers

  3. average(uint256 a, uint256 b): Returns the average of two numbers. The result is rounded towards zero.


Slide Screenshot

174.jpg


Slide Text

  • Math Utilities Missing in Solidity
  • max(uint256 a, uint256 b)
  • min(uint256 a, uint256 b)
  • average(uint256 a, uint256 b)

References


Tags