bigint

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Zero = big.NewInt(0)
	One  = big.NewInt(1)
)

Functions

func Clamp

func Clamp(start, end *big.Int, size uint64) *big.Int

Clamp returns a new big.Int for `end` to which `end - start` <= size. @note (start, end) is an inclusive range. This function assumes that `start` is not greater than `end`.

func Matcher

func Matcher(num int64) func(*big.Int) bool

Matcher returns an inner comparison function result for a big.Int

func WeiToETH added in v1.4.2

func WeiToETH(wei *big.Int) *big.Float

Types

This section is empty.

Jump to

Keyboard shortcuts

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