Documentation
¶
Index ¶
- func BigPow(x, y int64) *big.Int
- func DecodeTransactionInputDataToMap(contractABI *abi.ABI, data []byte, inputsMap map[string]interface{}) (*abi.Method, error)
- func DivideBigInt(dividend *big.Int, divisor *big.Int) float64
- func Exp(base, exponent *big.Int) *big.Int
- func GetSender(transaction *types.Transaction, chainId *big.Int) (common.Address, error)
- type Fraction
- func (f *Fraction) Add(other *Fraction) *Fraction
- func (f *Fraction) Divide(other *Fraction) *Fraction
- func (f *Fraction) EqualTo(other *Fraction) bool
- func (f *Fraction) GreaterThan(other *Fraction) bool
- func (f *Fraction) Invert() *Fraction
- func (f *Fraction) LessThan(other *Fraction) bool
- func (f *Fraction) Multiply(other *Fraction) *Fraction
- func (f *Fraction) Quotient() *big.Int
- func (f *Fraction) Remainder() *Fraction
- func (f *Fraction) Subtract(other *Fraction) *Fraction
- func (f *Fraction) ToFloat() *big.Float
- func (f *Fraction) ToFloat64() (fl float64, exact bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DivideBigInt ¶
DivideBigInt performs division of two big.Int numbers and returns the result as a float64. If an error occurs during the conversion, it returns 0 and the error.
Types ¶
type Fraction ¶
type Fraction struct {
// contains filtered or unexported fields
}
func NewFraction ¶
func NewFractionFromInt64 ¶
func (*Fraction) GreaterThan ¶
Click to show internal directories.
Click to hide internal directories.