util

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyFloat

func PrettyFloat(v float64, prec int) string

PrettyFloat is like FormatFloat(v, 'f', -1, 64), except that it will resort to using a smaller precision when the available precision exceeds prec. Useful when formatting check outputs and performance data that don't need excessive degrees of precision.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL