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

Method Add

context.go:174–176  ·  view source on GitHub ↗

Add sets d to the sum x+y.

(d, x, y *Decimal)

Source from the content-addressed store, hash-verified

172
173// Add sets d to the sum x+y.
174func (c *Context) Add(d, x, y *Decimal) (Condition, error) {
175 return c.add(d, x, y, false)
176}
177
178// Sub sets d to the difference x-y.
179func (c *Context) Sub(d, x, y *Decimal) (Condition, error) {

Callers 8

ExampleContext_overflowFunction · 0.95
CeilMethod · 0.95
addMethod · 0.45
QuoMethod · 0.45
SqrtMethod · 0.45
CbrtMethod · 0.45
LnMethod · 0.45
ExpMethod · 0.45

Calls 1

addMethod · 0.95

Tested by 1

ExampleContext_overflowFunction · 0.76