Description

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")

ComputeSI is referenced in 2 repositories

github.com/dustin/go-humanize github.com/h2so5/utp