func prefix(value float64, unit string) string {

	prefix := ""
	order := math.Log10(value)

	for pre, o := range _prefixes {
		if math.Abs(order-float64(_prefixes[prefix])) > math.Abs(order-float64(o)) {
			prefix = pre
		}
	}

	exp := _prefixes[prefix]
	short := value / math.Pow10(exp)

	return fmt.Sprintf("%.6E %s%s", short, prefix, unit)
}
// prefix encodes an SI prefix to the value and applies it to the unit.
prefix encodes an SI prefix to the value and applies it to the unit.
// prefix encodes an SI prefix to the value and applies it to the unit .
func prefix(value float64, unit string) string {
	prefix := ""
	order := math.Log10(value)
	for pre, o := range _prefixes {
		if math.Abs(order-float64(_prefixes[prefix])) > math.Abs(order-float64(o)) {
			prefix = pre
		}
	}
	exp := _prefixes[prefix]
	short := value / math.Pow10(exp)
	return fmt.Sprintf("%.6E %s%s", short, prefix, unit)
}
func prefix ( value float64 , unit string ) string { prefix := " " order := math . Log10 ( value ) for pre , o := range _prefixes { if math . Abs ( order - float64 ( _prefixes [ prefix ] ) ) > math . Abs ( order - float64 ( o ) ) { prefix = pre } } exp := _prefixes [ prefix ] short := value / math . Pow10 ( exp ) return fmt . Sprintf ( " " , short , prefix , unit ) }
prefix encodes an SI prefix to the value and applies it to the unit.
prefix encodes an SI prefix to the value and applies it to the unit .