MCPcopy
hub / github.com/kopia/kopia / toDecimalUnitString

Function toDecimalUnitString

internal/units/units.go:31–33  ·  view source on GitHub ↗
(f T, thousand float64, prefixes []string, suffix string)

Source from the content-addressed store, hash-verified

29}
30
31func toDecimalUnitString[T realNumber](f T, thousand float64, prefixes []string, suffix string) string {
32 return toDecimalUnitStringImp(float64(f), thousand, prefixes, suffix)
33}
34
35func toDecimalUnitStringImp(f, thousand float64, prefixes []string, suffix string) string {
36 for i := range prefixes {

Callers 4

BytesStringBase10Function · 0.85
BytesStringBase2Function · 0.85
BytesPerSecondsStringFunction · 0.85
CountFunction · 0.85

Calls 1

toDecimalUnitStringImpFunction · 0.85

Tested by

no test coverage detected