MCPcopy Create free account
hub / github.com/dolthub/doltgresql / FromDecimal

Function FromDecimal

postgres/parser/json/json.go:967–969  ·  view source on GitHub ↗

FromDecimal returns a JSON value given a apd.Decimal.

(v apd.Decimal)

Source from the content-addressed store, hash-verified

965
966// FromDecimal returns a JSON value given a apd.Decimal.
967func FromDecimal(v apd.Decimal) JSON {
968 return jsonNumber(v)
969}
970
971// FromNumber returns a JSON value given a json.Number.
972func FromNumber(v json.Number) (JSON, error) {

Callers

nothing calls this directly

Calls 1

jsonNumberTypeAlias · 0.85

Tested by

no test coverage detected