MCPcopy Create free account
hub / github.com/DNAProject/DNA / ToBigInt

Method ToBigInt

common/int128.go:99–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (self I128) ToBigInt() *big.Int {
100 val := U128(self).ToBigInt()
101
102 if val.Cmp(maxI128) > 0 {
103 val.Sub(val, pow128)
104 }
105
106 return val
107}
108
109// to big endian hex string
110func (self *I128) ToBEHex() string {

Callers 1

ToNumStringMethod · 0.95

Calls 4

U128TypeAlias · 0.85
CmpMethod · 0.80
SubMethod · 0.80
ToBigIntMethod · 0.45

Tested by

no test coverage detected