import "github.com/pkg/math"
Package math provides helper functions for mathematical operations over all integer Go types.
Almost all files in this package are automatically generated.
To regenerate this package
make -B
This package relies on github.com/davecheney/godoc2md.
func EqualBigInt(a, b *big.Int) boolEqualBigInt returns true if both *big.Ints are equal
func EqualBigRat(a, b *big.Rat) boolEqualBigRat returns true if both *big.Rats are equal
func Max(a, b int) intMax returns the larger of two ints.
func MaxBigInt(a, b *big.Int) *big.IntMaxBigInt returns the larger of the two *big.Ints
func MaxBigRat(a, b *big.Rat) *big.RatMaxBigRat returns the larger of the two *big.Rats
func MaxInt(a, b int) intMaxInt returns the larger of two ints.
func MaxInt16(a, b int16) int16MaxInt16 returns the larger of two int16s.
func MaxInt16N(v ...int16) int16MaxInt16N returns the largest int16 in the set provided. If no values are provided, MaxInt16 returns 0.
func MaxInt32(a, b int32) int32MaxInt32 returns the larger of two int32s.
func MaxInt32N(v ...int32) int32MaxInt32N returns the largest int32 in the set provided. If no values are provided, MaxInt32 returns 0.
func MaxInt64(a, b int64) int64MaxInt64 returns the larger of two int64s.
func MaxInt64N(v ...int64) int64MaxInt64N returns the largest int64 in the set provided. If no values are provided, MaxInt64 returns 0.
func MaxInt8(a, b int8) int8MaxInt8 returns the larger of two int8s.
func MaxInt8N(v ...int8) int8MaxInt8N returns the largest int8 in the set provided. If no values are provided, MaxInt8 returns 0.
func MaxIntN(v ...int) intMaxIntN returns the largest int in the set provided. If no values are provided, MaxInt returns 0.
func MaxN(v ...int) intMaxN returns the largest int in the set provided. If no values are provided, Max returns 0.
func MaxUint(a, b uint) uintMaxUint returns the larger of two uints.
func MaxUint16(a, b uint16) uint16MaxUint16 returns the larger of two uint16s.
func MaxUint16N(v ...uint16) uint16MaxUint16N returns the largest uint16 in the set provided. If no values are provided, MaxUint16 returns 0.
func MaxUint32(a, b uint32) uint32MaxUint32 returns the larger of two uint32s.
func MaxUint32N(v ...uint32) uint32MaxUint32N returns the largest uint32 in the set provided. If no values are provided, MaxUint32 returns 0.
func MaxUint64(a, b uint64) uint64MaxUint64 returns the larger of two uint64s.
func MaxUint64N(v ...uint64) uint64MaxUint64N returns the largest uint64 in the set provided. If no values are provided, MaxUint64 returns 0.
func MaxUint8(a, b uint8) uint8MaxUint8 returns the larger of two uint8s.
func MaxUint8N(v ...uint8) uint8MaxUint8N returns the largest uint8 in the set provided. If no values are provided, MaxUint8 returns 0.
func MaxUintN(v ...uint) uintMaxUintN returns the largest uint in the set provided. If no values are provided, MaxUint returns 0.
func Min(a, b int) intMin returns the smaller of two ints.
func MinBigInt(a, b *big.Int) *big.IntMinBigInt returns the smaller of the two *big.Ints
func MinBigRat(a, b *big.Rat) *big.RatMinBigRat returns the smaller of the two *big.Rats
func MinInt(a, b int) intMinInt returns the smaller of two ints.
func MinInt16(a, b int16) int16MinInt16 returns the smaller of two int16s.
func MinInt16N(v ...int16) int16MinInt16N returns the smallest int16 in the set provided. If no values are provided, MinInt16 returns 0.
func MinInt32(a, b int32) int32MinInt32 returns the smaller of two int32s.
func MinInt32N(v ...int32) int32MinInt32N returns the smallest int32 in the set provided. If no values are provided, MinInt32 returns 0.
func MinInt64(a, b int64) int64MinInt64 returns the smaller of two int64s.
func MinInt64N(v ...int64) int64MinInt64N returns the smallest int64 in the set provided. If no values are provided, MinInt64 returns 0.
func MinInt8(a, b int8) int8MinInt8 returns the smaller of two int8s.
func MinInt8N(v ...int8) int8MinInt8N returns the smallest int8 in the set provided. If no values are provided, MinInt8 returns 0.
func MinIntN(v ...int) intMinIntN returns the smallest int in the set provided. If no values are provided, MinInt returns 0.
func MinN(v ...int) intMinN returns the smallest int in the set provided. If no values are provided, Min returns 0.
func MinUint(a, b uint) uintMinUint returns the smaller of two uints.
func MinUint16(a, b uint16) uint16MinUint16 returns the smaller of two uint16s.
func MinUint16N(v ...uint16) uint16MinUint16N returns the smallest uint16 in the set provided. If no values are provided, MinUint16 returns 0.
func MinUint32(a, b uint32) uint32MinUint32 returns the smaller of two uint32s.
func MinUint32N(v ...uint32) uint32MinUint32N returns the smallest uint32 in the set provided. If no values are provided, MinUint32 returns 0.
func MinUint64(a, b uint64) uint64MinUint64 returns the smaller of two uint64s.
func MinUint64N(v ...uint64) uint64MinUint64N returns the smallest uint64 in the set provided. If no values are provided, MinUint64 returns 0.
func MinUint8(a, b uint8) uint8MinUint8 returns the smaller of two uint8s.
func MinUint8N(v ...uint8) uint8MinUint8N returns the smallest uint8 in the set provided. If no values are provided, MinUint8 returns 0.
func MinUintN(v ...uint) uintMinUintN returns the smallest uint in the set provided. If no values are provided, MinUint returns 0.
Generated by godoc2md