Documentation ¶
Index ¶
- func AppendDecimalToFloat(dst []float64, va []int64, e int16) []float64
- func AppendFloatToDecimal(dst []int64, src []float64) (va []int64, e int16)
- func CalibrateScale(a []int64, ae int16, b []int64, be int16) (e int16)
- func ExtendFloat64sCapacity(dst []float64, additionalItems int) []float64
- func ExtendInt64sCapacity(dst []int64, additionalItems int) []int64
- func FromFloat(f float64) (int64, int16)
- func ToFloat(v int64, e int16) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendDecimalToFloat ¶
AppendDecimalToFloat converts each item in va to f=v*10^e, appends it to dst and returns the resulting dst.
func AppendFloatToDecimal ¶
AppendFloatToDecimal converts each item in src to v*10^e and appends each v to dst returning it as va.
It tries minimizing each item in dst.
func CalibrateScale ¶
CalibrateScale calibrates a and b with the corresponding exponents ae, be and returns the resulting exponent e.
func ExtendFloat64sCapacity ¶
ExtendFloat64sCapacity extends dst capacity to hold additionalItems and returns the extended dst.
func ExtendInt64sCapacity ¶
ExtendInt64sCapacity extends dst capacity to hold additionalItems and returns the extended dst.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.