MCPcopy Create free account
hub / github.com/andeya/algorithm / SI

Function SI

go-humanize/si.go:88–91  ·  view source on GitHub ↗

SI returns a string with default formatting. SI uses Ftoa to format float value, removing trailing zeros. See also: ComputeSI, ParseSI. e.g. SI(1000000, B) -> 1MB e.g. SI(2.2345e-12, "F") -> 2.2345pF

(input float64, unit string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestSIFunction · 0.85

Calls 2

ComputeSIFunction · 0.85
FtoaFunction · 0.85

Tested by 1

TestSIFunction · 0.68