# Functions
AddCoin adds c and b, returning an error if the values overflow.
AddInt64 adds c and a, returning an error if the values overflow.
No description provided by the author
Float64ToCoin converts an float64 to a uint64 Coin, returning an error if the float64 value underflows uint64.
Int64ToCoin converts an int64 to a uint64 Coin, returning an error if the int64 value underflows uint64.
No description provided by the author
MinusCoin subtracts b from c, returning an error if the values overflow.
MinusInt64 subtracts a from c, returning an error if the values overflow.
MultCoin multiplies Coin c by b, returning an error if the values overflow.
MultFloat64 multiplies c by a, returning an error if the values overflow.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrFloat64UnderflowsUint64 is returned if when converting an float6464 to a uint64 underflow uint64.
ErrInt32AddOverflow is returned if when adding int32 values overflow int64.
ErrInt64AddOverflow is returned if when adding int64 values overflow int64.
ErrInt64UnderflowsUint64 is returned if when converting an int64 to a uint64 underflow uint64.
ErrIntAddOverflow is returned if when adding int values overflow int64.
ErrNegativeValue is returned if a float value is a negative number.
ErrTooLarge is returned if a value is greater than math.MaxInt64.
ErrTooManyDecimals is returned if a value has more than 10 decimal places.
ErrUint64AddOverflow is returned if when adding uint64 values overflow uint64.
ErrUint64MinusOverflow is returned if when subtracting uint64 values overflow uint64.
ErrUint64MultOverflow is returned if when multiplying uint64 values overflow uint64.
ErrUint64OverflowsFloat64 is returned if when converting a uint64 to a float64 overflow float64.
ErrUint64OverflowsInt64 is returned if when converting a uint64 to an int64 overflow int64.
# Type aliases
go:generate msgp -io=false -tests=false -v Coin - any quantity that is represented as an integer in the lowest denomination.