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

Function NewFromString

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

NewFromString creates a new decimal from s. It has no restrictions on exponents or precision.

(s string)

Source from the content-addressed store, hash-verified

172// NewFromString creates a new decimal from s. It has no restrictions on
173// exponents or precision.
174func NewFromString(s string) (*Decimal, Condition, error) {
175 return BaseContext.NewFromString(s)
176}
177
178// SetString sets d to s and returns d. It has no restrictions on exponents
179// or precision.

Callers 15

BenchmarkNumDigitsLookupFunction · 0.85
BenchmarkNumDigitsFullFunction · 0.85
TestDecomposerRoundTripFunction · 0.85
TestDecomposerComposeFunction · 0.85
BenchmarkGDAFunction · 0.85
TestSQLFunction · 0.85
TestFormatFunction · 0.85
TestQuantizeFunction · 0.85
TestCmpOrderFunction · 0.85
TestIsZeroFunction · 0.85

Calls 1

NewFromStringMethod · 0.80

Tested by 15

BenchmarkNumDigitsLookupFunction · 0.68
BenchmarkNumDigitsFullFunction · 0.68
TestDecomposerRoundTripFunction · 0.68
TestDecomposerComposeFunction · 0.68
BenchmarkGDAFunction · 0.68
TestSQLFunction · 0.68
TestFormatFunction · 0.68
TestQuantizeFunction · 0.68
TestCmpOrderFunction · 0.68
TestIsZeroFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…