MCPcopy Create free account
hub / github.com/prometheus/common / parseFloat

Function parseFloat

expfmt/text_parse.go:776–781  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

774}
775
776func parseFloat(s string) (float64, error) {
777 if strings.ContainsAny(s, "pP_") {
778 return 0, fmt.Errorf("unsupported character in float")
779 }
780 return strconv.ParseFloat(s, 64)
781}

Callers 2

startLabelValueMethod · 0.85
readingValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected