Documentation
¶
Index ¶
- func AbsFloat32(v float32) float32
- func AbsFloat64(v float64) float64
- func AbsInt16(v int16) int16
- func AbsInt32(v int32) int32
- func AbsInt64(v int64) int64
- func AbsInt8(v int8) int8
- func MaxFloat64s(values ...float64) float64
- func MaxInt16s(values ...int16) int16
- func MaxInt32s(values ...int32) int32
- func MaxInt64s(values ...int64) int64
- func MaxInt8s(values ...int8) int8
- func MaxInts(values ...int) int
- func MinFloat64s(values ...float64) float64
- func MinInt16s(values ...int16) int16
- func MinInt32s(values ...int32) int32
- func MinInt64s(values ...int64) int64
- func MinInt8s(values ...int8) int8
- func MinInts(values ...int) int
- func RangeRandomLCRC(left, right int) int
- func RangeRandomLCRO(left, right int) int
- func RangeRandomLORO(left, right int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsFloat32 ¶ added in v1.5.1
AbsFloat32 returns the absolute value of v, panic when overflowed.
func AbsFloat64 ¶ added in v1.5.1
AbsFloat64 returns the absolute value of v, panic when overflowed.
func MaxFloat64s ¶
MaxFloat64s returns the largest of elements, return float64(0) when values are empty.
func MinFloat64s ¶
MinFloat64s returns the smallest of elements, return float64(0) when values are empty.
func RangeRandomLCRC ¶
RangeRandomLCRC returns value in [left, right], LCRC means left close right close.
func RangeRandomLCRO ¶
RangeRandomLCRO returns value in [left, right), LCRO means left close right open.
func RangeRandomLORO ¶
RangeRandomLORO returns value in (left, right), LORO means left open right open. Notice: because of manual +1, so the value of left+1 will be slightly more.
Types ¶
This section is empty.