Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
492
func
(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
CmpTotal
Method · 0.95
TestCmpOrder
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestCmpOrder
Function · 0.64