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

Method SetString

decimal.go:180–182  ·  view source on GitHub ↗

SetString sets d to s and returns d. It has no restrictions on exponents or precision.

(s string)

Source from the content-addressed store, hash-verified

178// SetString sets d to s and returns d. It has no restrictions on exponents
179// or precision.
180func (d *Decimal) SetString(s string) (*Decimal, Condition, error) {
181 return BaseContext.SetString(d, s)
182}
183
184// NewFromString creates a new decimal from s. The returned Decimal has its
185// exponents restricted by the context and its value rounded if it contains more

Callers 8

makeConstFunction · 0.95
TestSQLFunction · 0.95
TestSizeFunction · 0.95
TestJSONEncodingFunction · 0.95
SetFloat64Method · 0.95
ScanMethod · 0.95
UnmarshalTextMethod · 0.95
setStringMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestSQLFunction · 0.76
TestSizeFunction · 0.76
TestJSONEncodingFunction · 0.76