Closed DieBauer closed 7 months ago
The generated dashboard shows a quantile of '0.98999999999999999' (99/100) instead of a nicer 0.99 (https://github.com/grafana/grafonnet/blob/bb2afaffbcefeae1035cd691ab06a486e0022002/examples/redMethod/output.json#L87). By changing the interpolation from string (%s) to general (%g) this is more correct (see https://docs.python.org/3/library/string.html#format-specification-mini-language for %g).
It also leaves 0.5 to 1 decimal, and 0.99 to 2, while using %f would format 0.5 as 0.50.
All committers have signed the CLA.
Nice, can you also update the rendered output.json to reflect this change? That should fix the failing smoke test.
Thanks, regenerated.
The generated dashboard shows a quantile of '0.98999999999999999' (99/100) instead of a nicer 0.99 (https://github.com/grafana/grafonnet/blob/bb2afaffbcefeae1035cd691ab06a486e0022002/examples/redMethod/output.json#L87).
By changing the interpolation from string (%s) to general (%g) this is more correct (see https://docs.python.org/3/library/string.html#format-specification-mini-language for %g).
It also leaves 0.5 to 1 decimal, and 0.99 to 2, while using %f would format 0.5 as 0.50.