MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / AsDecimal

Method AsDecimal

pkg/util/json/json.go:182–182  ·  view source on GitHub ↗

AsDecimal returns the JSON document as a apd.Decimal if it is a numeric type, and a boolean indicating if this JSON value is a numeric type.

()

Source from the content-addressed store, hash-verified

180 // AsDecimal returns the JSON document as a apd.Decimal if it is a numeric
181 // type, and a boolean indicating if this JSON value is a numeric type.
182 AsDecimal() (*apd.Decimal, bool)
183
184 // AsBool returns the JSON document as a boolean if it is a boolean type,
185 // and a boolean indicating if this JSON value is a bool type.

Callers 3

IsCompositeMethod · 0.65
AsDecimalMethod · 0.65
maybeNormalizeUnaryOpFunction · 0.65

Implementers 4

jsonNullpkg/util/json/json.go
jsonFalsepkg/util/json/json.go
jsonTruepkg/util/json/json.go
jsonEncodedpkg/util/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected