math

package
v0.0.0-...-82a33b0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max[N Number](v1 N, v2 N) N

Max returns the maximum value of two numbers.

func Min

func Min[N Number](v1 N, v2 N) N

Min returns the minimum number of two numbers.

Types

type Number

type Number interface {
	int | int32 | int64 | float32 | float64 | time.Duration
}

Types of numbers that may be used in routines.

Jump to

Keyboard shortcuts

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