bigint

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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