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

Function FromInt64

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

FromInt64 returns a JSON value given a int64.

(v int64)

Source from the content-addressed store, hash-verified

1944
1945// FromInt64 returns a JSON value given a int64.
1946func FromInt64(v int64) JSON {
1947 dec := apd.Decimal{}
1948 dec.SetInt64(v)
1949 return jsonNumber(dec)
1950}
1951
1952// FromFloat64 returns a JSON value given a float64.
1953func FromFloat64(v float64) (JSON, error) {

Callers 2

ParseMethod · 0.92
MakeJSONFunction · 0.70

Calls 1

jsonNumberTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…