package
Version:
v0.8.3
Opens a new window with list of versions in this module.
Published: Feb 22, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Add(a uint, b uint) (uint, error)
-
func Div(a uint, b uint) (uint, error)
-
func Mod(a uint, b uint) (uint, error)
-
func Mul(a uint, b uint) (uint, error)
-
func Sub(a uint, b uint) (uint, error)
Add adds two uints, reverts on overflow.
Div is integer division of two uints truncating the quotient, reverts on division by zero.
Mod divides two uints and returns the remainder (unsigned integer modulo), reverts when dividing by zero.
Mul multiplies two uints, error on overflow.
Sub subtracts two uints, reverts on overflow (i.e. if subtrahend is greater than minuend).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.