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

Method Round

bytes.go:76–110  ·  view source on GitHub ↗

Round returns Base2Bytes with all but the first n units zeroed out. So that e.g. 1GiB1MiB1KiB → 1GiB1MiB, if n is 2.

(n int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestBase2RoundFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBase2RoundFunction · 0.76