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

Method WithPrecision

context.go:74–79  ·  view source on GitHub ↗

WithPrecision returns a copy of c but with the specified precision.

(p uint32)

Source from the content-addressed store, hash-verified

72
73// WithPrecision returns a copy of c but with the specified precision.
74func (c *Context) WithPrecision(p uint32) *Context {
75 r := new(Context)
76 *r = *c
77 r.Precision = p
78 return r
79}
80
81// goError converts flags into an error based on c.Traps.
82//gcassert:inline

Callers 15

SqrtMethod · 0.95
LnMethod · 0.95
ExpMethod · 0.95
quantizeMethod · 0.95
gdaTestFunction · 0.80
runBenchesFunction · 0.80
ExampleContext_inexactFunction · 0.80
ExampleContext_QuantizeFunction · 0.80
ExampleErrDecimalFunction · 0.80
CbrtMethod · 0.80
Log10Method · 0.80

Calls

no outgoing calls

Tested by 9

gdaTestFunction · 0.64
runBenchesFunction · 0.64
ExampleContext_inexactFunction · 0.64
ExampleContext_QuantizeFunction · 0.64
ExampleErrDecimalFunction · 0.64
TestQuoErrFunction · 0.64
TestContextSetStringtFunction · 0.64
TestQuantizeFunction · 0.64