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

Method AsDecimal

pkg/util/json/json.go:617–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

615func (j jsonArray) AsDecimal() (*apd.Decimal, bool) { return nil, false }
616func (j jsonObject) AsDecimal() (*apd.Decimal, bool) { return nil, false }
617func (j jsonNumber) AsDecimal() (*apd.Decimal, bool) {
618 d := apd.Decimal(j)
619 return &d, true
620}
621
622func (j jsonNull) AsBool() (bool, bool) { return false, false }
623func (j jsonFalse) AsBool() (bool, bool) { return false, true }

Callers

nothing calls this directly

Calls 1

DecimalMethod · 0.65

Tested by

no test coverage detected