Kit Traverse (v1.2.3)
What's Changed
- Implemented
Float64() float64
by @holiman in #132 - Implemented
CmpBig
by @holiman in #138 - Implemented
Log10
andCmpUint64
by @holiman in #136 - Allow converting between
nil
big.Int
andnil
uint256.Int
by @karalabe in #137 - tests: naming conventions for benchmarks, remove obsolete by @holiman in #133
New API Methods
// Float64 returns the float64 value nearest to x.
//
// Note: The `big.Float` version of `Float64` also returns an 'Accuracy', indicating
// whether the value was too small or too large to be represented by a
// `float64`. However, the `uint256` type is unable to represent values
// out of scope (|x| < math.SmallestNonzeroFloat64 or |x| > math.MaxFloat64),
// therefore this method does not return any accuracy.
func (z *Int) Float64() float64
// CmpBig compares z and x and returns:
//
// -1 if z < x
// 0 if z == x
// +1 if z > x
func (z *Int) CmpBig(x *big.Int) (r int)
// CmpUint64 compares z and x and returns:
//
// -1 if z < x
// 0 if z == x
// +1 if z > x
func (z *Int) CmpUint64(x uint64) int
// Log10 returns the log in base 10, floored to nearest integer.
// **OBS** This method returns '0' for '0', not `-Inf`.
func (z *Int) Log10() uint
Full Changelog: v1.2.2...v1.2.3