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

Method cmpOrder

decimal.go:492–498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

490}
491
492func (d *Decimal) cmpOrder() int {
493 v := int(d.Form) + 1
494 if d.Negative {
495 v = -v
496 }
497 return v
498}
499
500// Cmp compares x and y and sets d to:
501//

Callers 2

CmpTotalMethod · 0.95
TestCmpOrderFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCmpOrderFunction · 0.64