bigints

package
v0.265.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

README

bigints

This package provides helper functions to handle the [big.Int] datatype. While [big.Int] works with pointers the provided functions focus on storing the values as string since very common for input and output.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIntToDecimalString

func AddIntToDecimalString(decimal string, toAdd int) (result string, err error)

func GetFromDecimalString

func GetFromDecimalString(decimal string) (bigInt *big.Int, err error)

func IncrementDecimalString

func IncrementDecimalString(decimal string) (incremented string, err error)

func MustGetFromDecimalString

func MustGetFromDecimalString(decimal string) (bigInt *big.Int)

func MustIncrementDecimalString

func MustIncrementDecimalString(decimal string) (incremented string)

func MustToDecimalString

func MustToDecimalString(bigInt *big.Int) (decimal string)

func ToDecimalString

func ToDecimalString(bigInt *big.Int) (decimal string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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