Documentation ¶
Overview ¶
Package number provides utilities for number comparison, rounding, etc.
Index ¶
- func Max(a, b int) int
- func MaxInt16(a, b int16) int16
- func MaxInt16N(a []int16) (int, int16)
- func MaxInt32(a, b int32) int32
- func MaxInt32N(a []int32) (int, int32)
- func MaxInt64(a, b int64) int64
- func MaxInt64N(a []int64) (int, int64)
- func MaxInt8(a, b int8) int8
- func MaxInt8N(a []int8) (int, int8)
- func MaxN(a []int) (int, int)
- func MaxUint(a, b uint) uint
- func MaxUint16(a, b uint16) uint16
- func MaxUint16N(a []uint16) (int, uint16)
- func MaxUint32(a, b uint32) uint32
- func MaxUint32N(a []uint32) (int, uint32)
- func MaxUint64(a, b uint64) uint64
- func MaxUint64N(a []uint64) (int, uint64)
- func MaxUint8(a, b uint8) uint8
- func MaxUint8N(a []uint8) (int, uint8)
- func MaxUintN(a []uint) (int, uint)
- func Min(a, b int) int
- func MinInt32(a, b int32) int32
- func MinInt32N(a []int32) (int, int32)
- func MinInt64(a, b int64) int64
- func MinInt64N(a []int64) (int, int64)
- func MinInt8(a, b int8) int8
- func MinInt8N(a []int8) (int, int8)
- func MinN(a []int) (int, int)
- func MinUint(a, b uint) uint
- func MinUint16(a, b uint16) uint16
- func MinUint16N(a []uint16) (int, uint16)
- func MinUint32(a, b uint32) uint32
- func MinUint32N(a []uint32) (int, uint32)
- func MinUint64(a, b uint64) uint64
- func MinUint64N(a []uint64) (int, uint64)
- func MinUint8(a, b uint8) uint8
- func MinUint8N(a []uint8) (int, uint8)
- func MinUintN(a []uint) (int, uint)
- func Round(v float64, prec int) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxUint16N ¶
func MaxUint32N ¶
func MaxUint64N ¶
func MinUint16N ¶
func MinUint32N ¶
func MinUint64N ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.