MCPcopy Create free account
hub / github.com/alecthomas/units / Round

Method Round

bytes.go:165–199  ·  view source on GitHub ↗

Round returns MetricBytes with all but the first n units zeroed out. So that e.g. 1GB1MB1KB → 1GB1MB, if n is 2.

(n int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestMetricRoundFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMetricRoundFunction · 0.76