package
Version:
v3.11.0
Opens a new window with list of versions in this module.
Published: Jan 10, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Abs returns the absolute value of the input number.
Max returns the maximum value between two input numbers.
func Mid[T Number](a, b, c T) T
Mid returns the median value of three input numbers.
Min returns the minimum value between two input numbers.
func WithinRange[T Number](v, target, margin T) bool
WithinRange returns true if v is within [target-margin, target+margin].
Source Files
¶
Click to show internal directories.
Click to hide internal directories.