Documentation ¶
Index ¶
- func Abs[T Comparable](x T) T
- func Ceil[T constraints.Float](x T) T
- func Floor[T constraints.Float](x T) T
- func IsEven[T constraints.Integer](x T) bool
- func IsOdd[T constraints.Integer](x T) bool
- func Max[T Comparable](x, y T) T
- func Min[T Comparable](x, y T) T
- func Round[T constraints.Float](x T) T
- func RoundToEven[T constraints.Float](x T) T
- func Trunc[T constraints.Float](x T) T
- type Comparable
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 }
Click to show internal directories.
Click to hide internal directories.