math

package
v0.0.0-...-1905027 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[NumType SignedNumberType](Num NumType) NumType

func Add

func Add[NumType NumberType](number1 NumType, number2 NumType) NumType

func Max

func Max[NumType NumberType](number1 NumType, number2 NumType) NumType

func Min

func Min[NumType NumberType](number1 NumType, number2 NumType) NumType

func Mul

func Mul[NumType NumberType](number1 NumType, number2 NumType) NumType

func Sub

func Sub[NumType NumberType](number1 NumType, number2 NumType) NumType

Types

type FloatType

type FloatType interface {
	float32 | float64
}

type NumberType

type NumberType interface {
	int | int8 | int16 | int32 | int64 | float32 | float64 | uint | uint8 | uint16 | uint32 | uint64
}

type SignedNumberType

type SignedNumberType interface {
	int | int8 | int16 | int32 | int64 | float32 | float64
}

Jump to

Keyboard shortcuts

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