Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ floatToString
Function
floatToString
pkg/cmd/cache/list/list.go:164–168 ·
view source on GitHub ↗
(f float64, p uint8)
Source
from the content-addressed store, hash-verified
162
}
163
164
func
floatToString(f float64, p uint8) string {
165
fs := fmt.Sprintf(
"%#f%0*s"
, f, p,
""
)
166
idx := strings.IndexRune(fs,
'.'
)
167
return
fs[:idx+int(p)+1]
168
}
Callers
1
humanFileSize
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected