Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/shopspring/decimal
/ sign
Function
sign
decimal_test.go:2049–2051 ·
view source on GitHub ↗
(d Decimal)
Source
from the content-addressed store, hash-verified
2047
}
2048
2049
func
sign(d Decimal) int {
2050
return
d.value.Sign()
2051
}
2052
2053
// rules for rounded divide, rounded to integer
2054
// rounded_divide(d,d2) = q
Callers
5
Benchmark_DivideOriginal
Function · 0.85
Benchmark_DivideNew
Function · 0.85
TestDecimal_QuoRem2
Function · 0.85
TestDecimal_DivRound
Function · 0.85
TestDecimal_DivRound2
Function · 0.85
Calls
1
Sign
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…