Versions in this module Expand all Collapse all v1 v1.0.0 Oct 23, 2023 Changes in this version + const DefaultPrecision + var One = big.NewInt(0).SetString("1000000000000000000000000", 10) + func Cmp(a, b Amount) int + type Amount big.Int + func Add(a, b Amount) Amount + func Mul(a, b Amount) Amount + func MustNewFromString(v string) Amount + func NewFromBigInt(v *big.Int) Amount + func NewFromInt(v int64) Amount + func NewFromIntWithPrecision(v *big.Int, precision int) Amount + func NewFromString(s string) (Amount, error) + func Sub(a, b Amount) Amount + func Sum(amounts ...Amount) Amount + func (a *Amount) Scan(src interface{}) error + func (a *Amount) UnmarshalJSON(data []byte) error + func (a Amount) Float() float64 + func (a Amount) Int() *big.Int + func (a Amount) IntWithPrecision(precision int) *big.Int + func (a Amount) MarshalJSON() ([]byte, error) + func (a Amount) String() string + func (a Amount) Value() (driver.Value, error)