Discover Packages
github.com/ava-labs/avalanchego
utils
math
package
Version:
v1.7.11-rc.29
Opens a new window with list of versions in this module.
Published: May 24, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 174
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Add64(a, b uint64) (uint64, error)
func Diff64(a, b uint64) uint64
func Max64(max uint64, nums ...uint64) uint64
func Min(min int, nums ...int) int
func Min64(min uint64, nums ...uint64) uint64
func Mul64(a, b uint64) (uint64, error)
func Sub64(a, b uint64) (uint64, error)
type Averager
Add64 returns:
1) a + b
2) If there is overflow, an error
Max64 returns the maximum of the values provided
Min returns the minimum of the values provided
Min64 returns the minimum of the values provided
Mul64 returns:
1) a * b
2) If there is overflow, an error
Sub64 returns:
1) a - b
2) If there is underflow, an error
Averager tracks a continuous time exponential moving average of the provided
values.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.