math

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T Number](number T) T

Abs function implementation that supports integers, and not only floats like in the standard library

func Max

func Max[T constraints.Ordered](item T, items ...T) T

Max function implementation

func Min

func Min[T constraints.Ordered](item T, items ...T) T

Min function implementation

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Jump to

Keyboard shortcuts

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