bigint

package
v0.0.0-...-b291640 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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

func Matcher

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

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

func StringToBigInt

func StringToBigInt(value string) *big.Int

func StringToInt

func StringToInt(value string) int

func WeiToETH

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