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.
funcEqualBigInt(a, b*big.Int) boolEqualBigInt returns true if both *big.Ints are equal
funcEqualBigRat(a, b*big.Rat) boolEqualBigRat returns true if both *big.Rats are equal
funcMax(a, bint) intMax returns the larger of two ints.
funcMaxBigInt(a, b*big.Int) *big.IntMaxBigInt returns the larger of the two *big.Ints
funcMaxBigRat(a, b*big.Rat) *big.RatMaxBigRat returns the larger of the two *big.Rats
funcMaxInt(a, bint) intMaxInt returns the larger of two ints.
funcMaxInt16(a, bint16) int16MaxInt16 returns the larger of two int16s.
funcMaxInt16N(v...int16) int16MaxInt16N returns the largest int16 in the set provided. If no values are provided, MaxInt16 returns 0.
funcMaxInt32(a, bint32) int32MaxInt32 returns the larger of two int32s.
funcMaxInt32N(v...int32) int32MaxInt32N returns the largest int32 in the set provided. If no values are provided, MaxInt32 returns 0.
funcMaxInt64(a, bint64) int64MaxInt64 returns the larger of two int64s.
funcMaxInt64N(v...int64) int64MaxInt64N returns the largest int64 in the set provided. If no values are provided, MaxInt64 returns 0.
funcMaxInt8(a, bint8) int8MaxInt8 returns the larger of two int8s.
funcMaxInt8N(v...int8) int8MaxInt8N returns the largest int8 in the set provided. If no values are provided, MaxInt8 returns 0.
funcMaxIntN(v...int) intMaxIntN returns the largest int in the set provided. If no values are provided, MaxInt returns 0.
funcMaxN(v...int) intMaxN returns the largest int in the set provided. If no values are provided, Max returns 0.
funcMaxUint(a, buint) uintMaxUint returns the larger of two uints.
funcMaxUint16(a, buint16) uint16MaxUint16 returns the larger of two uint16s.
funcMaxUint16N(v...uint16) uint16MaxUint16N returns the largest uint16 in the set provided. If no values are provided, MaxUint16 returns 0.
funcMaxUint32(a, buint32) uint32MaxUint32 returns the larger of two uint32s.
funcMaxUint32N(v...uint32) uint32MaxUint32N returns the largest uint32 in the set provided. If no values are provided, MaxUint32 returns 0.
funcMaxUint64(a, buint64) uint64MaxUint64 returns the larger of two uint64s.
funcMaxUint64N(v...uint64) uint64MaxUint64N returns the largest uint64 in the set provided. If no values are provided, MaxUint64 returns 0.
funcMaxUint8(a, buint8) uint8MaxUint8 returns the larger of two uint8s.
funcMaxUint8N(v...uint8) uint8MaxUint8N returns the largest uint8 in the set provided. If no values are provided, MaxUint8 returns 0.
funcMaxUintN(v...uint) uintMaxUintN returns the largest uint in the set provided. If no values are provided, MaxUint returns 0.
funcMin(a, bint) intMin returns the smaller of two ints.
funcMinBigInt(a, b*big.Int) *big.IntMinBigInt returns the smaller of the two *big.Ints
funcMinBigRat(a, b*big.Rat) *big.RatMinBigRat returns the smaller of the two *big.Rats
funcMinInt(a, bint) intMinInt returns the smaller of two ints.
funcMinInt16(a, bint16) int16MinInt16 returns the smaller of two int16s.
funcMinInt16N(v...int16) int16MinInt16N returns the smallest int16 in the set provided. If no values are provided, MinInt16 returns 0.
funcMinInt32(a, bint32) int32MinInt32 returns the smaller of two int32s.
funcMinInt32N(v...int32) int32MinInt32N returns the smallest int32 in the set provided. If no values are provided, MinInt32 returns 0.
funcMinInt64(a, bint64) int64MinInt64 returns the smaller of two int64s.
funcMinInt64N(v...int64) int64MinInt64N returns the smallest int64 in the set provided. If no values are provided, MinInt64 returns 0.
funcMinInt8(a, bint8) int8MinInt8 returns the smaller of two int8s.
funcMinInt8N(v...int8) int8MinInt8N returns the smallest int8 in the set provided. If no values are provided, MinInt8 returns 0.
funcMinIntN(v...int) intMinIntN returns the smallest int in the set provided. If no values are provided, MinInt returns 0.
funcMinN(v...int) intMinN returns the smallest int in the set provided. If no values are provided, Min returns 0.
funcMinUint(a, buint) uintMinUint returns the smaller of two uints.
funcMinUint16(a, buint16) uint16MinUint16 returns the smaller of two uint16s.
funcMinUint16N(v...uint16) uint16MinUint16N returns the smallest uint16 in the set provided. If no values are provided, MinUint16 returns 0.
funcMinUint32(a, buint32) uint32MinUint32 returns the smaller of two uint32s.
funcMinUint32N(v...uint32) uint32MinUint32N returns the smallest uint32 in the set provided. If no values are provided, MinUint32 returns 0.
funcMinUint64(a, buint64) uint64MinUint64 returns the smaller of two uint64s.
funcMinUint64N(v...uint64) uint64MinUint64N returns the smallest uint64 in the set provided. If no values are provided, MinUint64 returns 0.
funcMinUint8(a, buint8) uint8MinUint8 returns the smaller of two uint8s.
funcMinUint8N(v...uint8) uint8MinUint8N returns the smallest uint8 in the set provided. If no values are provided, MinUint8 returns 0.
funcMinUintN(v...uint) uintMinUintN returns the smallest uint in the set provided. If no values are provided, MinUint returns 0.
Generated by godoc2md