bignum

package
v0.0.0-...-5038352 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atof

func Atof(s string) (*big.Float, error)

func Atoi

func Atoi(s string) (*big.Int, error)

func Int

func Int(i int64) *big.Int

func Int0

func Int0() *big.Int

func Int1

func Int1() *big.Int

func Int10

func Int10() *big.Int

func IntN1

func IntN1() *big.Int

func IntN10

func IntN10() *big.Int

func MustAtof

func MustAtof(s string) *big.Float

func MustAtoi

func MustAtoi(s string) *big.Int

func OptItoa

func OptItoa(i *big.Int) *string

Types

type WBigInt

type WBigInt struct {
	*big.Int
}

JSON friendly big.Int

func (*WBigInt) FromBigInt

func (bigInt *WBigInt) FromBigInt(i *big.Int) *WBigInt

func (*WBigInt) MarshalJSON

func (w *WBigInt) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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