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

Method Sub

context.go:179–181  ·  view source on GitHub ↗

Sub sets d to the difference x-y.

(d, x, y *Decimal)

Source from the content-addressed store, hash-verified

177
178// Sub sets d to the difference x-y.
179func (c *Context) Sub(d, x, y *Decimal) (Condition, error) {
180 return c.add(d, x, y, true)
181}
182
183// Abs sets d to |x| (the absolute value of x).
184func (c *Context) Abs(d, x *Decimal) (Condition, error) {

Callers 3

FloorMethod · 0.95
addMethod · 0.45
LnMethod · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected