Expand description
The shortest float formats of Goโs strconv, which Prometheus writes label values in.
Functionsยง
- format_
float_ ๐f - Goโs
strconv.FormatFloat(value, 'f', -1, 64), the form ofcount_valueslabels. - format_
float_ ๐g - Goโs
strconv.FormatFloat(value, 'g', -1, 64), which%gand%vprint a float in: the shortest digits, with an exponent of at least two digits below 1e-4 and from 1e6 on. - format_
open_ ๐metrics_ float - Prometheus
labels.FormatOpenMetricsFloat, the form ofhistogram_quantileslabels: Goโs shortest'g'format, with.0appended to an integer and0,1and-1written as0.0,1.0and-1.0. - positional ๐
ยฑ0.digits ร 10^pointin positional notation without trailing fractional zeros.- shortest ๐
- The fewest significant digits of a finite
valuethat round-trip, without trailing zeros, and the position of the decimal point among them:value = ยฑ0.digits ร 10^point. Zero is"0"at point 1. - special ๐