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

Function makeConst

const.go:46–53  ·  view source on GitHub ↗
(strVal string)

Source from the content-addressed store, hash-verified

44)
45
46func makeConst(strVal string) *Decimal {
47 d := &Decimal{}
48 _, _, err := d.SetString(strVal)
49 if err != nil {
50 panic(err)
51 }
52 return d
53}
54
55// constWithPrecision implements a look-up table for a constant, rounded-down to
56// various precisions. The point is to avoid doing calculations with all the

Callers 1

const.goFile · 0.85

Calls 1

SetStringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…