package
0.0.0-20241118162539-34caac850176
Repository: https://go.googlesource.com/perf
Documentation: pkg.go.dev
# Functions
ClassOf returns the Class of unit.
CommonScale returns a common Scaler to apply to all values in vals.
Scale formats val using at least three significant digits, appending an SI or binary prefix.
Tidy normalizes a value with a (possibly pre-scaled) unit into base units.
# Variables
NoOpScaler is a Scaler that formats numbers with the smallest number of digits necessary to capture the exact value, and no prefix.
# Structs
A Scaler represents a scaling factor for a number and its scientific representation.
# Type aliases
A Class specifies what class of unit prefixes are in use.