package
Version:
v3.3.3+incompatible
Opens a new window with list of versions in this module.
Published: Dec 3, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Percentage(total, current, width int64) int64
Percentage is a helper function, to calculate percentage.
Round returns the nearest integer, rounding half away from zero.
Special cases are:
Round(±0) = ±0
Round(±Inf) = ±Inf
Round(NaN) = NaN
Source Files
¶
Click to show internal directories.
Click to hide internal directories.