bn

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

type Float struct {
	// contains filtered or unexported fields
}

func FloatFromBigFloat

func FloatFromBigFloat(x *big.Float) *Float

func FloatFromBigInt

func FloatFromBigInt(x *big.Int) *Float

func FloatFromFloat64

func FloatFromFloat64(x float64) *Float

func FloatFromInt

func FloatFromInt(x *Int) *Float

func FloatFromInt64

func FloatFromInt64(x int64) *Float

func FloatFromString

func FloatFromString(s string) *Float

func FloatFromUint64

func FloatFromUint64(x uint64) *Float

func (*Float) Abs

func (f *Float) Abs() *Float

func (*Float) Add

func (f *Float) Add(x *Float) *Float

func (*Float) BigFloat

func (f *Float) BigFloat() *big.Float

func (*Float) BigInt

func (f *Float) BigInt() *big.Int

func (*Float) Cmp

func (f *Float) Cmp(x *Float) int

func (*Float) Div

func (f *Float) Div(x *Float) *Float

func (*Float) Float64

func (f *Float) Float64() float64

func (*Float) GobDecode

func (f *Float) GobDecode(b []byte) error

GobDecode implements the gob.GobDecoder interface.

func (*Float) GobEncode

func (f *Float) GobEncode() ([]byte, error)

GobEncode implements the gob.GobEncoder interface.

func (*Float) Int

func (f *Float) Int() *Int

func (*Float) Inv

func (f *Float) Inv() *Float

func (*Float) Mul

func (f *Float) Mul(x *Float) *Float

func (*Float) Neg

func (f *Float) Neg() *Float

func (*Float) Scan

func (f *Float) Scan(v interface{}) error

Scan implements the sql.Scanner interface.

func (*Float) Sign

func (f *Float) Sign() int

func (*Float) Sqrt

func (f *Float) Sqrt() *Float

func (*Float) String

func (f *Float) String() string

func (*Float) Sub

func (f *Float) Sub(x *Float) *Float

func (*Float) Text

func (f *Float) Text(format byte, prec int) string

func (*Float) Value

func (f *Float) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int

type Int struct {
	// contains filtered or unexported fields
}

func IntFromBigFloat

func IntFromBigFloat(x *big.Float) *Int

func IntFromBigInt

func IntFromBigInt(x *big.Int) *Int

func IntFromBytes

func IntFromBytes(x []byte) *Int

func IntFromFloat

func IntFromFloat(x *Float) *Int

func IntFromFloat64

func IntFromFloat64(x float64) *Int

func IntFromInt64

func IntFromInt64(x int64) *Int

func IntFromString

func IntFromString(s string, base int) *Int

func IntFromUint64

func IntFromUint64(x uint64) *Int

func (*Int) Abs

func (i *Int) Abs() *Int

func (*Int) Add

func (i *Int) Add(x *Int) *Int

func (*Int) BigFloat

func (i *Int) BigFloat() *big.Float

func (*Int) BigInt

func (i *Int) BigInt() *big.Int

func (*Int) Cmp

func (i *Int) Cmp(x *Int) int

func (*Int) Div

func (i *Int) Div(x *Int) *Int

func (*Int) DivRoundUp

func (i *Int) DivRoundUp(x *Int) *Int

func (*Int) Float

func (i *Int) Float() *Float

func (*Int) GobDecode

func (i *Int) GobDecode(b []byte) error

GobDecode implements the gob.GobDecoder interface.

func (*Int) GobEncode

func (i *Int) GobEncode() ([]byte, error)

GobEncode implements the gob.GobEncoder interface.

func (*Int) Int64

func (i *Int) Int64() int64

func (*Int) Inv

func (i *Int) Inv() *Float

func (*Int) Lsh

func (i *Int) Lsh(n uint) *Int

func (*Int) Mul

func (i *Int) Mul(x *Int) *Int

func (*Int) Neg

func (i *Int) Neg() *Int

func (*Int) Pow

func (i *Int) Pow(x *Int) *Int

func (*Int) Rem

func (i *Int) Rem(x *Int) *Int

func (*Int) Rsh

func (i *Int) Rsh(n uint) *Int

func (*Int) Scan

func (i *Int) Scan(v interface{}) error

Scan implements the sql.Scanner interface.

func (*Int) Sign

func (i *Int) Sign() int

func (*Int) Sqrt

func (i *Int) Sqrt() *Int

func (*Int) String

func (i *Int) String() string

func (*Int) Sub

func (i *Int) Sub(x *Int) *Int

func (*Int) Text

func (i *Int) Text(base int) string

func (*Int) Uint64

func (i *Int) Uint64() uint64

func (*Int) Value

func (i *Int) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

Jump to

Keyboard shortcuts

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