Documentation
¶
Index ¶
- Variables
- type Int
- func (z *Int) Abs(x *Int) *Int
- func (z *Int) Add(x, y *Int) *Int
- func (z *Int) Cmp(x *Int) (r int)
- func (z *Int) Div(x, y *Int) *Int
- func (z *Int) Eq(x *Int) bool
- func (z *Int) IsZero() bool
- func (z *Int) Mul(x, y *Int) *Int
- func (z *Int) MulExp10(x *Int, y int64) *Int
- func (z *Int) Neg(x *Int) *Int
- func (z *Int) Set(x *Int) *Int
- func (z *Int) SetUint64(x uint64) *Int
- func (z *Int) Sign() int
- func (z *Int) String() string
- func (z *Int) Sub(x, y *Int) *Int
- func (z *Int) ToBig() *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OneInt256 = NewInt(1) TenInt256 = NewInt(10) OneMillionInt256 = NewInt(1_000_000) )
Functions ¶
This section is empty.
Types ¶
type Int ¶
func MustFromBig ¶
MustFromBig creates a new Int from a big.Int. Panics on failure.
func NewUnsignedInt ¶
NewUnsignedInt creates a new Int from a uint64.
Click to show internal directories.
Click to hide internal directories.