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

Function roundHalfUp

round.go:181–183  ·  view source on GitHub ↗
(result *BigInt, neg bool, half int)

Source from the content-addressed store, hash-verified

179}
180
181func roundHalfUp(result *BigInt, neg bool, half int) bool {
182 return half >= 0
183}
184
185func roundHalfEven(result *BigInt, neg bool, half int) bool {
186 if half > 0 {

Callers 1

ShouldAddOneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…