Documentation ¶
Index ¶
- Constants
- type BigFloat
- func (bf *BigFloat) Abs(a BigFloat)
- func (bf *BigFloat) Add(a BigFloat, b BigFloat)
- func (bf *BigFloat) BF() _bf
- func (bf *BigFloat) Cmp(a BigFloat) int
- func (bf *BigFloat) CreateFromString(s string, mode big.RoundingMode) error
- func (bf *BigFloat) Div(a BigFloat, b BigFloat)
- func (bf *BigFloat) MarshalJSON() ([]byte, error)
- func (bf *BigFloat) Mul(a BigFloat, b BigFloat)
- func (bf *BigFloat) Scan(src interface{}) error
- func (bf *BigFloat) SetDecimal(d uint)
- func (bf *BigFloat) String() string
- func (bf *BigFloat) Sub(a BigFloat, b BigFloat)
- func (bf BigFloat) Value() (driver.Value, error)
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) CreateFromString ¶
func (bf *BigFloat) CreateFromString(s string, mode big.RoundingMode) error
func (*BigFloat) MarshalJSON ¶
@todo xml protobuf ...
func (*BigFloat) SetDecimal ¶
Click to show internal directories.
Click to hide internal directories.