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

Method Get

pkg/settings/float.go:28–30  ·  view source on GitHub ↗

Get retrieves the float value in the setting.

(sv *Values)

Source from the content-addressed store, hash-verified

26
27// Get retrieves the float value in the setting.
28func (f *FloatSetting) Get(sv *Values) float64 {
29 return math.Float64frombits(uint64(sv.getInt64(f.slot)))
30}
31
32func (f *FloatSetting) String(sv *Values) string {
33 return EncodeFloat(f.Get(sv))

Callers 1

StringMethod · 0.95

Calls 1

getInt64Method · 0.45

Tested by

no test coverage detected