MCPcopy Create free account
hub / github.com/cockroachdb/apd / setBig

Method setBig

decimal.go:411–417  ·  view source on GitHub ↗

setBig sets b to d's coefficient with negative.

(b *BigInt)

Source from the content-addressed store, hash-verified

409
410// setBig sets b to d's coefficient with negative.
411func (d *Decimal) setBig(b *BigInt) *BigInt {
412 b.Set(&d.Coeff)
413 if d.Negative {
414 b.Neg(b)
415 }
416 return b
417}
418
419// CmpTotal compares d and x using their abstract representation rather
420// than their numerical value. A total ordering is defined for all possible

Callers 2

PowMethod · 0.95
ReduceMethod · 0.95

Calls 2

SetMethod · 0.45
NegMethod · 0.45

Tested by

no test coverage detected