huge

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IntNegativeOne = NewInt(-1)    // 默认初始化的-1值Int,应当将其当作常量使用
	IntZero        = NewInt(0)     // 默认初始化的0值Int,应当将其当作常量使用
	IntOne         = NewInt(1)     // 默认初始化的1值Int,应当将其当作常量使用
	IntTen         = NewInt(10)    // 默认初始化的10值Int,应当将其当作常量使用
	IntHundred     = NewInt(100)   // 默认初始化的100值Int,应当将其当作常量使用
	IntThousand    = NewInt(1000)  // 默认初始化的1000值Int,应当将其当作常量使用
	IntTenThousand = NewInt(10000) // 默认初始化的10000值Int,应当将其当作常量使用
)

Functions

This section is empty.

Types

type Int

type Int big.Int

func NewInt

func NewInt[T IntRestrain](x T, exp ...T) *Int

func (*Int) Add

func (slf *Int) Add(i *Int) *Int

func (*Int) AddInt

func (slf *Int) AddInt(i int) *Int

func (*Int) AddInt16

func (slf *Int) AddInt16(i int16) *Int

func (*Int) AddInt32

func (slf *Int) AddInt32(i int32) *Int

func (*Int) AddInt64

func (slf *Int) AddInt64(i int64) *Int

func (*Int) AddInt8

func (slf *Int) AddInt8(i int8) *Int

func (*Int) AddUint

func (slf *Int) AddUint(i uint) *Int

func (*Int) AddUint16

func (slf *Int) AddUint16(i uint16) *Int

func (*Int) AddUint32

func (slf *Int) AddUint32(i uint32) *Int

func (*Int) AddUint64

func (slf *Int) AddUint64(i uint64) *Int

func (*Int) AddUint8

func (slf *Int) AddUint8(i uint8) *Int

func (*Int) Cmp

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

func (*Int) Copy

func (slf *Int) Copy() *Int

func (*Int) EqualTo

func (slf *Int) EqualTo(i *Int) bool

EqualTo 等于

func (*Int) GreaterThan

func (slf *Int) GreaterThan(i *Int) bool

GreaterThan 大于

func (*Int) GreaterThanOrEqualTo

func (slf *Int) GreaterThanOrEqualTo(i *Int) bool

GreaterThanOrEqualTo 大于或等于

func (*Int) Int64

func (slf *Int) Int64() int64

func (*Int) IsZero

func (slf *Int) IsZero() bool

func (*Int) LessThan

func (slf *Int) LessThan(i *Int) bool

LessThan 小于

func (*Int) LessThanOrEqualTo

func (slf *Int) LessThanOrEqualTo(i *Int) bool

LessThanOrEqualTo 小于或等于

func (*Int) Mul

func (slf *Int) Mul(i *Int) *Int

func (*Int) MulInt

func (slf *Int) MulInt(i int) *Int

func (*Int) MulInt16

func (slf *Int) MulInt16(i int16) *Int

func (*Int) MulInt32

func (slf *Int) MulInt32(i int32) *Int

func (*Int) MulInt64

func (slf *Int) MulInt64(i int64) *Int

func (*Int) MulInt8

func (slf *Int) MulInt8(i int8) *Int

func (*Int) MulUint

func (slf *Int) MulUint(i uint) *Int

func (*Int) MulUint16

func (slf *Int) MulUint16(i uint16) *Int

func (*Int) MulUint32

func (slf *Int) MulUint32(i uint32) *Int

func (*Int) MulUint64

func (slf *Int) MulUint64(i uint64) *Int

func (*Int) MulUint8

func (slf *Int) MulUint8(i uint8) *Int

func (*Int) Set

func (slf *Int) Set(i *Int) *Int

func (*Int) SetInt

func (slf *Int) SetInt(i int) *Int

func (*Int) SetInt16

func (slf *Int) SetInt16(i int16) *Int

func (*Int) SetInt32

func (slf *Int) SetInt32(i int32) *Int

func (*Int) SetInt64

func (slf *Int) SetInt64(i int64) *Int

func (*Int) SetInt8

func (slf *Int) SetInt8(i int8) *Int

func (*Int) SetUint

func (slf *Int) SetUint(i uint) *Int

func (*Int) SetUint16

func (slf *Int) SetUint16(i uint16) *Int

func (*Int) SetUint32

func (slf *Int) SetUint32(i uint32) *Int

func (*Int) SetUint64

func (slf *Int) SetUint64(i uint64) *Int

func (*Int) SetUint8

func (slf *Int) SetUint8(i uint8) *Int

func (*Int) String

func (slf *Int) String() string

func (*Int) Sub

func (slf *Int) Sub(i *Int) *Int

func (*Int) SubInt

func (slf *Int) SubInt(i int) *Int

func (*Int) SubInt16

func (slf *Int) SubInt16(i int16) *Int

func (*Int) SubInt32

func (slf *Int) SubInt32(i int32) *Int

func (*Int) SubInt64

func (slf *Int) SubInt64(i int64) *Int

func (*Int) SubInt8

func (slf *Int) SubInt8(i int8) *Int

func (*Int) SubUint

func (slf *Int) SubUint(i uint) *Int

func (*Int) SubUint16

func (slf *Int) SubUint16(i uint16) *Int

func (*Int) SubUint32

func (slf *Int) SubUint32(i uint32) *Int

func (*Int) SubUint64

func (slf *Int) SubUint64(i uint64) *Int

func (*Int) SubUint8

func (slf *Int) SubUint8(i uint8) *Int

func (*Int) ToBigint

func (slf *Int) ToBigint() *big.Int

type IntRestrain

type IntRestrain interface {
	uint | uint8 | uint16 | uint32 | uint64 | int | int8 | int16 | int32 | int64
}

Jump to

Keyboard shortcuts

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