Help us shape the future of Go! Take the 2026 Go Developer Survey

math

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32Max

func Float32Max(fn func(a, b float32) bool, a, b float32) float32

func Float64Max

func Float64Max(fn func(a, b float64) bool, a, b float64) float64

func Int8Max

func Int8Max(fn func(a, b int8) bool, a, b int8) int8

func Int16Max

func Int16Max(fn func(a, b int16) bool, a, b int16) int16

func Int32Max

func Int32Max(fn func(a, b int32) bool, a, b int32) int32

func Int64Max

func Int64Max(fn func(a, b int64) bool, a, b int64) int64

func IntMax

func IntMax(fn func(a, b int) bool, a, b int) int

func Uint8Max

func Uint8Max(fn func(a, b uint8) bool, a, b uint8) uint8

func Uint16Max

func Uint16Max(fn func(a, b uint16) bool, a, b uint16) uint16

func Uint32Max

func Uint32Max(fn func(a, b uint32) bool, a, b uint32) uint32

func Uint64Max

func Uint64Max(fn func(a, b uint64) bool, a, b uint64) uint64

func UintMax

func UintMax(fn func(a, b uint) bool, a, b uint) uint

Types

type NumberType

type NumberType generic.Number

func NumberTypeMax

func NumberTypeMax(a, b NumberType) NumberType

NumberTypeMax gets the maximum number from the two specified.

type ThisNumberType

type ThisNumberType generic.Number

func ThisNumberTypeMax

func ThisNumberTypeMax(fn func(a, b ThisNumberType) bool, a, b ThisNumberType) ThisNumberType

Jump to

Keyboard shortcuts

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