MCPcopy Index your code
hub / github.com/prometheus/prometheus / parseFloat

Function parseFloat

model/textparse/promparse.go:529–535  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

527}
528
529func parseFloat(s string) (float64, error) {
530 // Keep to pre-Go 1.13 float formats.
531 if strings.ContainsAny(s, "pP_") {
532 return 0, errors.New("unsupported character in float")
533 }
534 return strconv.ParseFloat(s, 64)
535}

Callers 15

parseMetricSuffixMethod · 0.85
parseCommentMethod · 0.85
parseSeriesEndOfLineMethod · 0.85
getFloatValueMethod · 0.85
getFillValueFunction · 0.85
RulesContentFunction · 0.85
findMinPositiveFunction · 0.85
findMaxNegativeFunction · 0.85
showZeroAxisFunction · 0.85
findZeroBucketFunction · 0.85
parseValueFunction · 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…