MCPcopy
hub / github.com/henrygd/beszel / twoDecimals

Function twoDecimals

internal/records/records.go:635–637  ·  view source on GitHub ↗

* Round float to two decimals */

(value float64)

Source from the content-addressed store, hash-verified

633
634/* Round float to two decimals */
635func twoDecimals(value float64) float64 {
636 return math.Round(value*100) / 100
637}

Callers 3

TwoDecimalsFunction · 0.70
AverageSystemStatsMethod · 0.70
AverageContainerStatsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected