math

package
v0.0.0-...-1c0ff78 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T Comparable](x T) T

func Ceil

func Ceil[T constraints.Float](x T) T

func Floor

func Floor[T constraints.Float](x T) T

func IsEven

func IsEven[T constraints.Integer](x T) bool

func IsOdd

func IsOdd[T constraints.Integer](x T) bool

func Max

func Max[T Comparable](x, y T) T

func Min

func Min[T Comparable](x, y T) T

func Round

func Round[T constraints.Float](x T) T

func RoundToEven

func RoundToEven[T constraints.Float](x T) T

func Trunc

func Trunc[T constraints.Float](x T) T

Types

type Comparable

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

Jump to

Keyboard shortcuts

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