fixed

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixed

type Fixed big.Int

Fixed is a decimal number with 24 decimal digits

func MustNew

func MustNew(str string) *Fixed

MustNew creates an instance of Fixed from a string

func (*Fixed) BigInt

func (v *Fixed) BigInt() *big.Int

BigInt returns big.Int representation

func (Fixed) MarshalJSON

func (v Fixed) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaller

func (*Fixed) String

func (v *Fixed) String() string

String implements fmt.Stringer

func (*Fixed) UnmarshalJSON

func (v *Fixed) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaller

Jump to

Keyboard shortcuts

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