Documentation ¶
Index ¶
- Variables
- type Float
- func (slf *Float) Abs() *Float
- func (slf *Float) Add(i *Float) *Float
- func (slf *Float) Cmp(i *Float) int
- func (slf *Float) Copy() *Float
- func (slf *Float) Div(i *Float) *Float
- func (slf *Float) EqualTo(i *Float) bool
- func (slf *Float) Float64() float64
- func (slf *Float) GreaterThan(i *Float) bool
- func (slf *Float) GreaterThanOrEqualTo(i *Float) bool
- func (slf *Float) IsNegative() bool
- func (slf *Float) IsPositive() bool
- func (slf *Float) IsZero() bool
- func (slf *Float) LessThan(i *Float) bool
- func (slf *Float) LessThanOrEqualTo(i *Float) bool
- func (slf *Float) Mul(i *Float) *Float
- func (slf *Float) Set(i *Float) *Float
- func (slf *Float) Sign() int
- func (slf *Float) Sqrt() *Float
- func (slf *Float) String() string
- func (slf *Float) Sub(i *Float) *Float
- func (slf *Float) ToBigFloat() *big.Float
- type Int
- func (slf *Int) Abs() *Int
- func (slf *Int) Add(i *Int) *Int
- func (slf *Int) AddInt(i int) *Int
- func (slf *Int) AddInt16(i int16) *Int
- func (slf *Int) AddInt32(i int32) *Int
- func (slf *Int) AddInt64(i int64) *Int
- func (slf *Int) AddInt8(i int8) *Int
- func (slf *Int) AddUint(i uint) *Int
- func (slf *Int) AddUint16(i uint16) *Int
- func (slf *Int) AddUint32(i uint32) *Int
- func (slf *Int) AddUint64(i uint64) *Int
- func (slf *Int) AddUint8(i uint8) *Int
- func (slf *Int) And(i *Int) *Int
- func (slf *Int) AndNot(i *Int) *Int
- func (slf *Int) Bit(i int) uint
- func (slf *Int) BitLen() int
- func (slf *Int) Cmp(i *Int) int
- func (slf *Int) Copy() *Int
- func (slf *Int) Div(i *Int) *Int
- func (slf *Int) DivInt(i int) *Int
- func (slf *Int) DivInt16(i int16) *Int
- func (slf *Int) DivInt32(i int32) *Int
- func (slf *Int) DivInt64(i int64) *Int
- func (slf *Int) DivInt8(i int8) *Int
- func (slf *Int) DivUint(i uint) *Int
- func (slf *Int) DivUint16(i uint16) *Int
- func (slf *Int) DivUint32(i uint32) *Int
- func (slf *Int) DivUint64(i uint64) *Int
- func (slf *Int) DivUint8(i uint8) *Int
- func (slf *Int) EqualTo(i *Int) bool
- func (slf *Int) GCD(i *Int) *Int
- func (slf *Int) GreaterThan(i *Int) bool
- func (slf *Int) GreaterThanOrEqualTo(i *Int) bool
- func (slf *Int) Int64() int64
- func (slf *Int) IsEven() bool
- func (slf *Int) IsNegative() bool
- func (slf *Int) IsOdd() bool
- func (slf *Int) IsPositive() bool
- func (slf *Int) IsZero() bool
- func (slf *Int) LCM(i *Int) *Int
- func (slf *Int) LessThan(i *Int) bool
- func (slf *Int) LessThanOrEqualTo(i *Int) bool
- func (slf *Int) Lsh(i int) *Int
- func (slf *Int) Mod(i *Int) *Int
- func (slf *Int) ModInt(i int) *Int
- func (slf *Int) ModInt16(i int16) *Int
- func (slf *Int) ModInt32(i int32) *Int
- func (slf *Int) ModInt64(i int64) *Int
- func (slf *Int) ModInt8(i int8) *Int
- func (slf *Int) ModInverse(i *Int) *Int
- func (slf *Int) ModSqrt(i *Int) *Int
- func (slf *Int) ModUint(i uint) *Int
- func (slf *Int) ModUint16(i uint16) *Int
- func (slf *Int) ModUint32(i uint32) *Int
- func (slf *Int) ModUint64(i uint64) *Int
- func (slf *Int) ModUint8(i uint8) *Int
- func (slf *Int) Mul(i *Int) *Int
- func (slf *Int) MulInt(i int) *Int
- func (slf *Int) MulInt16(i int16) *Int
- func (slf *Int) MulInt32(i int32) *Int
- func (slf *Int) MulInt64(i int64) *Int
- func (slf *Int) MulInt8(i int8) *Int
- func (slf *Int) MulUint(i uint) *Int
- func (slf *Int) MulUint16(i uint16) *Int
- func (slf *Int) MulUint32(i uint32) *Int
- func (slf *Int) MulUint64(i uint64) *Int
- func (slf *Int) MulUint8(i uint8) *Int
- func (slf *Int) Neg() *Int
- func (slf *Int) Not() *Int
- func (slf *Int) Or(i *Int) *Int
- func (slf *Int) Pow(i *Int) *Int
- func (slf *Int) PowInt(i int) *Int
- func (slf *Int) PowInt16(i int16) *Int
- func (slf *Int) PowInt32(i int32) *Int
- func (slf *Int) PowInt64(i int64) *Int
- func (slf *Int) PowInt8(i int8) *Int
- func (slf *Int) PowUint(i uint) *Int
- func (slf *Int) PowUint16(i uint16) *Int
- func (slf *Int) PowUint32(i uint32) *Int
- func (slf *Int) PowUint64(i uint64) *Int
- func (slf *Int) PowUint8(i uint8) *Int
- func (slf *Int) ProportionalCalc(proportional *Int, formula func(v *Int) *Int) *Int
- func (slf *Int) Rsh(i int) *Int
- func (slf *Int) Set(i *Int) *Int
- func (slf *Int) SetBit(i int, v uint) *Int
- func (slf *Int) SetInt(i int) *Int
- func (slf *Int) SetInt16(i int16) *Int
- func (slf *Int) SetInt32(i int32) *Int
- func (slf *Int) SetInt64(i int64) *Int
- func (slf *Int) SetInt8(i int8) *Int
- func (slf *Int) SetUint(i uint) *Int
- func (slf *Int) SetUint16(i uint16) *Int
- func (slf *Int) SetUint32(i uint32) *Int
- func (slf *Int) SetUint64(i uint64) *Int
- func (slf *Int) SetUint8(i uint8) *Int
- func (slf *Int) Sign() int
- func (slf *Int) Sqrt() *Int
- func (slf *Int) String() string
- func (slf *Int) Sub(i *Int) *Int
- func (slf *Int) SubInt(i int) *Int
- func (slf *Int) SubInt16(i int16) *Int
- func (slf *Int) SubInt32(i int32) *Int
- func (slf *Int) SubInt64(i int64) *Int
- func (slf *Int) SubInt8(i int8) *Int
- func (slf *Int) SubUint(i uint) *Int
- func (slf *Int) SubUint16(i uint16) *Int
- func (slf *Int) SubUint32(i uint32) *Int
- func (slf *Int) SubUint64(i uint64) *Int
- func (slf *Int) SubUint8(i uint8) *Int
- func (slf *Int) ToBigint() *big.Int
- func (slf *Int) Xor(i *Int) *Int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FloatNegativeOne = NewFloat(-1.0) // 默认初始化的-1值Float,应当将其当作常量使用 FloatZero = NewFloat(0.0) // 默认初始化的0值Float,应当将其当作常量使用 FloatOne = NewFloat(1.0) // 默认初始化的1值Float,应当将其当作常量使用 FloatTen = NewFloat(10.0) // 默认初始化的10值Float,应当将其当作常量使用 FloatHundred = NewFloat(100.0) // 默认初始化的100值Float,应当将其当作常量使用 FloatThousand = NewFloat(1000.0) // 默认初始化的1000值Float,应当将其当作常量使用 FloatTenThousand = NewFloat(10000.0) // 默认初始化的10000值Float,应当将其当作常量使用 )
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 Float ¶ added in v0.4.1
func (*Float) GreaterThan ¶ added in v0.4.1
GreaterThan 大于
func (*Float) GreaterThanOrEqualTo ¶ added in v0.4.1
GreaterThanOrEqualTo 大于或等于
func (*Float) LessThanOrEqualTo ¶ added in v0.4.1
LessThanOrEqualTo 小于或等于
func (*Float) ToBigFloat ¶ added in v0.4.1
type Int ¶
func (*Int) GreaterThanOrEqualTo ¶
GreaterThanOrEqualTo 大于或等于
func (*Int) LessThanOrEqualTo ¶
LessThanOrEqualTo 小于或等于
func (*Int) ProportionalCalc ¶ added in v0.3.4
ProportionalCalc 比例计算,该函数会再 formula 返回值的基础上除以 proportional
- formula 为计算公式,该公式的参数为调用该函数的 Int 的拷贝
Click to show internal directories.
Click to hide internal directories.