bigfloat

package
v0.3.0-nightly.1553262284 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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) MarshalJSON

func (bf *BigFloat) MarshalJSON() ([]byte, error)

@todo xml protobuf ...

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)

Jump to

Keyboard shortcuts

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