import "github.com/apache/arrow/go/arrow/decimal128"
type Num struct {
// contains filtered or unexported fields
}
Num represents a signed 128-bit integer in two's complement. Calculations wrap around and overflow is ignored.
For a discussion of the algorithms, look at Knuth's volume 2, Semi-numerical Algorithms section 4.3.1.
Adapted from the Apache ORC C++ implementation
FromI64 returns a new signed 128-bit integer value from the provided int64 one.
FromU64 returns a new signed 128-bit integer value from the provided uint64 one.
New returns a new signed 128-bit integer value.
HighBits returns the high bits of the two's complement representation of the number.
LowBits returns the low bits of the two's complement representation of the number.
Sign returns:
-1 if x < 0
0 if x == 0
+1 if x > 0
Package decimal128 is imported by 8 packages. Updated 2019-06-27. Refresh now. Tools for package owners.