MCPcopy
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
2049func 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_DivideOriginalFunction · 0.85
Benchmark_DivideNewFunction · 0.85
TestDecimal_QuoRem2Function · 0.85
TestDecimal_DivRoundFunction · 0.85
TestDecimal_DivRound2Function · 0.85

Calls 1

SignMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…