diy_type

package
v0.1.0-nightly.1551956163 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToNearestEven big.RoundingMode = iota // == IEEE 754-2008 roundTiesToEven
	ToNearestAway                         // == IEEE 754-2008 roundTiesToAway
	ToZero                                // == IEEE 754-2008 roundTowardZero
	AwayFromZero                          // no IEEE 754-2008 equivalent
	ToNegativeInf                         // == IEEE 754-2008 roundTowardNegative
	ToPositiveInf                         // == IEEE 754-2008 roundTowardPositive
)

These constants define supported rounding modes.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigFloat

type BigFloat struct {
	// contains filtered or unexported fields
}

func (*BigFloat) Abs

func (bf *BigFloat) Abs(a BigFloat)

func (*BigFloat) Add

func (bf *BigFloat) Add(a BigFloat, b BigFloat)

func (*BigFloat) BF

func (bf *BigFloat) BF() _bf

func (*BigFloat) Cmp

func (bf *BigFloat) Cmp(a BigFloat) int

func (*BigFloat) CreateFromString

func (bf *BigFloat) CreateFromString(s string, mode big.RoundingMode) error

func (*BigFloat) Div

func (bf *BigFloat) Div(a BigFloat, b BigFloat)

func (*BigFloat) Mul

func (bf *BigFloat) Mul(a BigFloat, b BigFloat)

func (*BigFloat) Scan

func (bf *BigFloat) Scan(src interface{}) error

func (*BigFloat) SetDecimal

func (bf *BigFloat) SetDecimal(d uint)

func (*BigFloat) String

func (bf *BigFloat) String() string

func (*BigFloat) Sub

func (bf *BigFloat) Sub(a BigFloat, b BigFloat)

func (BigFloat) Value

func (bf BigFloat) Value() (driver.Value, error)

type BigInt

type BigInt struct {
	// contains filtered or unexported fields
}

func (*BigInt) Abs

func (bi *BigInt) Abs(a BigInt)

func (*BigInt) Add

func (bi *BigInt) Add(a BigInt, b BigInt)

func (*BigInt) BI

func (bi *BigInt) BI() _bi

func (*BigInt) Cmp

func (bi *BigInt) Cmp(a BigInt) int

func (*BigInt) CreateFromString

func (bi *BigInt) CreateFromString(s string, base int) error

func (*BigInt) Div

func (bi *BigInt) Div(a BigInt, b BigInt)

func (*BigInt) Mul

func (bi *BigInt) Mul(a BigInt, b BigInt)

func (*BigInt) Scan

func (bi *BigInt) Scan(src interface{}) error

func (*BigInt) Sub

func (bi *BigInt) Sub(a BigInt, b BigInt)

func (BigInt) Value

func (bi BigInt) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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