num

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int big.Int

Int is a wrapper of sorts around big.Int. One of the intentions is to prevent users from being directly exposed to the big.Int API and usage of BigInt(). This is due to big.Int introducing bugs if not careful with its usage and its API.

func Int64

func Int64(v int64) Int

func New

func New(s string) (Int, bool)

func Uint64 added in v0.7.8

func Uint64(v uint64) Int

func (Int) Add

func (i Int) Add(that Int) Int

func (Int) BigFloat added in v0.9.0

func (i Int) BigFloat() *big.Float

func (Int) BigInt

func (i Int) BigInt() *big.Int

func (Int) Div added in v0.9.0

func (i Int) Div(that Int) Int

func (Int) Equal added in v0.9.0

func (i Int) Equal(that Int) bool

func (Int) GreaterThan added in v0.9.0

func (i Int) GreaterThan(that Int) bool

func (Int) Int

func (i Int) Int() int

func (Int) Int64

func (i Int) Int64() int64

func (Int) LessThan added in v0.9.0

func (i Int) LessThan(that Int) bool

func (Int) MarshalDynamoDBAttributeValue

func (i Int) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

func (Int) Mul added in v0.9.0

func (i Int) Mul(that Int) Int

func (Int) String

func (i Int) String() string

func (Int) Sub

func (i Int) Sub(that Int) Int

func (Int) Uint64 added in v0.7.8

func (i Int) Uint64() uint64

func (*Int) UnmarshalDynamoDBAttributeValue

func (i *Int) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL