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

Method toIntegral

context.go:1218–1221  ·  view source on GitHub ↗
(d, x *Decimal)

Source from the content-addressed store, hash-verified

1216}
1217
1218func (c *Context) toIntegral(d, x *Decimal) Condition {
1219 res := c.quantize(d, x, 0)
1220 return res
1221}
1222
1223func (c *Context) toIntegralSpecials(d, x *Decimal) (bool, Condition, error) {
1224 if c.shouldSetAsNaN(x, nil) {

Callers 2

RoundToIntegralValueMethod · 0.95
RoundToIntegralExactMethod · 0.95

Calls 1

quantizeMethod · 0.95

Tested by

no test coverage detected