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

Function round05Up

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

Source from the content-addressed store, hash-verified

169}
170
171func round05Up(result *BigInt, neg bool, half int) bool {
172 var z BigInt
173 z.Rem(result, bigFive)
174 if z.Sign() == 0 {
175 return true
176 }
177 z.Rem(result, bigTen)
178 return z.Sign() == 0
179}
180
181func roundHalfUp(result *BigInt, neg bool, half int) bool {
182 return half >= 0

Callers 1

ShouldAddOneMethod · 0.85

Calls 2

RemMethod · 0.95
SignMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…