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

Function ComputeSI

go-humanize/si.go:60–78  ·  view source on GitHub ↗

ComputeSI finds the most appropriate SI prefix for the given number and returns the prefix along with the value adjusted to be within that prefix. See also: SI, ParseSI. e.g. ComputeSI(2.2345e-12) -> (2.2345, "p")

(input float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SIFunction · 0.85

Calls 3

lognFunction · 0.85
FloorMethod · 0.80
PowMethod · 0.45

Tested by

no test coverage detected