bn

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Big0 = big.NewInt(0)
View Source
var Big1 = big.NewInt(1)

Functions

func Add added in v0.1.0

func Add(a *big.Int, b *big.Int) *big.Int

func Dec

func Dec(val *big.Int) *big.Int

func Inc

func Inc(val *big.Int) *big.Int

func IsEq added in v0.1.0

func IsEq(a *big.Int, b *big.Int) bool

a == b

func IsGt added in v0.1.0

func IsGt(a *big.Int, b *big.Int) bool

a > b

func IsGte added in v0.1.0

func IsGte(a *big.Int, b *big.Int) bool

a >= b

func IsLt added in v0.1.0

func IsLt(a *big.Int, b *big.Int) bool

a < b

func IsLte added in v0.1.0

func IsLte(a *big.Int, b *big.Int) bool

a <= b

func IsNonZero added in v0.1.0

func IsNonZero(a *big.Int) bool

func IsZero added in v0.1.0

func IsZero(a *big.Int) bool

a == 0

func Max added in v0.1.0

func Max(a *big.Int, b *big.Int) *big.Int

func Min added in v0.1.0

func Min(a *big.Int, b *big.Int) *big.Int

func Neg added in v0.1.0

func Neg(val *big.Int) *big.Int

func Sub added in v0.1.0

func Sub(a *big.Int, b *big.Int) *big.Int

func Sum

func Sum(values ...*big.Int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL