Discover Packages
github.com/bradenaw/juniper
xmath
package
Version:
v0.15.3
Opens a new window with list of versions in this module.
Published: Jan 28, 2024
License: MIT
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
Documentation
¶
Package xmath contains extensions to the standard library package math.
Abs returns the absolute value of x. It panics if this value is not representable, for example
because -math.MinInt32 requires more than 32 bits to represent and so does not fit in an int32.
Clamp clamps the value of x to within min and max.
Max returns the maximum of a and b based on the > operator.
Deprecated: max is a builtin as of Go 1.21.
Min returns the minimum of a and b based on the < operator.
Deprecated: min is a builtin as of Go 1.21.
Source Files
¶
Directories
¶
Package xrand contains extensions to the standard library package math/rand.
Package xrand contains extensions to the standard library package math/rand.
Click to show internal directories.
Click to hide internal directories.