Documentation ¶
Overview ¶
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.
Index ¶
- func EqualBigInt(a, b *big.Int) bool
- func EqualBigRat(a, b *big.Rat) bool
- func Max(a, b int) int
- func MaxBigInt(a, b *big.Int) *big.Int
- func MaxBigRat(a, b *big.Rat) *big.Rat
- func MaxInt(a, b int) int
- func MaxInt16(a, b int16) int16
- func MaxInt16N(v ...int16) int16
- func MaxInt32(a, b int32) int32
- func MaxInt32N(v ...int32) int32
- func MaxInt64(a, b int64) int64
- func MaxInt64N(v ...int64) int64
- func MaxInt8(a, b int8) int8
- func MaxInt8N(v ...int8) int8
- func MaxIntN(v ...int) int
- func MaxN(v ...int) int
- func MaxUint(a, b uint) uint
- func MaxUint16(a, b uint16) uint16
- func MaxUint16N(v ...uint16) uint16
- func MaxUint32(a, b uint32) uint32
- func MaxUint32N(v ...uint32) uint32
- func MaxUint64(a, b uint64) uint64
- func MaxUint64N(v ...uint64) uint64
- func MaxUint8(a, b uint8) uint8
- func MaxUint8N(v ...uint8) uint8
- func MaxUintN(v ...uint) uint
- func Min(a, b int) int
- func MinBigInt(a, b *big.Int) *big.Int
- func MinBigRat(a, b *big.Rat) *big.Rat
- func MinInt(a, b int) int
- func MinInt16(a, b int16) int16
- func MinInt16N(v ...int16) int16
- func MinInt32(a, b int32) int32
- func MinInt32N(v ...int32) int32
- func MinInt64(a, b int64) int64
- func MinInt64N(v ...int64) int64
- func MinInt8(a, b int8) int8
- func MinInt8N(v ...int8) int8
- func MinIntN(v ...int) int
- func MinN(v ...int) int
- func MinUint(a, b uint) uint
- func MinUint16(a, b uint16) uint16
- func MinUint16N(v ...uint16) uint16
- func MinUint32(a, b uint32) uint32
- func MinUint32N(v ...uint32) uint32
- func MinUint64(a, b uint64) uint64
- func MinUint64N(v ...uint64) uint64
- func MinUint8(a, b uint8) uint8
- func MinUint8N(v ...uint8) uint8
- func MinUintN(v ...uint) uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualBigInt ¶
EqualBigInt returns true if both *bit.Ints are equal
func EqualBigRat ¶
EqualBigRat returns true if both *bit.Ints are equal
func MaxInt16N ¶
MaxInt16N returns the largest int16 in the set provided. If no values are provided, MaxInt16 returns 0.
func MaxInt32N ¶
MaxInt32N returns the largest int32 in the set provided. If no values are provided, MaxInt32 returns 0.
func MaxInt64N ¶
MaxInt64N returns the largest int64 in the set provided. If no values are provided, MaxInt64 returns 0.
func MaxInt8N ¶
MaxInt8N returns the largest int8 in the set provided. If no values are provided, MaxInt8 returns 0.
func MaxIntN ¶
MaxIntN returns the largest int in the set provided. If no values are provided, MaxInt returns 0.
func MaxN ¶
MaxN returns the largest int in the set provided. If no values are provided, Max returns 0.
func MaxUint16N ¶
MaxUint16N returns the largest uint16 in the set provided. If no values are provided, MaxUint16 returns 0.
func MaxUint32N ¶
MaxUint32N returns the largest uint32 in the set provided. If no values are provided, MaxUint32 returns 0.
func MaxUint64N ¶
MaxUint64N returns the largest uint64 in the set provided. If no values are provided, MaxUint64 returns 0.
func MaxUint8N ¶
MaxUint8N returns the largest uint8 in the set provided. If no values are provided, MaxUint8 returns 0.
func MaxUintN ¶
MaxUintN returns the largest uint in the set provided. If no values are provided, MaxUint returns 0.
func MinInt16N ¶
MinInt16N returns the smallest int16 in the set provided. If no values are provided, MinInt16 returns 0.
func MinInt32N ¶
MinInt32N returns the smallest int32 in the set provided. If no values are provided, MinInt32 returns 0.
func MinInt64N ¶
MinInt64N returns the smallest int64 in the set provided. If no values are provided, MinInt64 returns 0.
func MinInt8N ¶
MinInt8N returns the smallest int8 in the set provided. If no values are provided, MinInt8 returns 0.
func MinIntN ¶
MinIntN returns the smallest int in the set provided. If no values are provided, MinInt returns 0.
func MinN ¶
MinN returns the smallest int in the set provided. If no values are provided, Min returns 0.
func MinUint16N ¶
MinUint16N returns the smallest uint16 in the set provided. If no values are provided, MinUint16 returns 0.
func MinUint32N ¶
MinUint32N returns the smallest uint32 in the set provided. If no values are provided, MinUint32 returns 0.
func MinUint64N ¶
MinUint64N returns the smallest uint64 in the set provided. If no values are provided, MinUint64 returns 0.
Types ¶
This section is empty.