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

Function EncodeFloat

pkg/settings/updater.go:43–45  ·  view source on GitHub ↗

EncodeFloat encodes a float in the format of EncodedValue.Value.

(f float64)

Source from the content-addressed store, hash-verified

41
42// EncodeFloat encodes a float in the format of EncodedValue.Value.
43func EncodeFloat(f float64) string {
44 return strconv.FormatFloat(f, 'G', -1, 64)
45}
46
47// EncodeProtobuf encodes a protobuf in the format of EncodedValue.Value.
48func EncodeProtobuf(p protoutil.Message) string {

Callers 4

StringMethod · 0.85
DefaultStringMethod · 0.85
EncodedDefaultMethod · 0.85
DecodeToStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…