Documentation ¶
Index ¶
- func CeilToPowerOfTwo[T Integer](n T) T
- func FloorToPowerOfTwo[T Integer](n T) T
- func IsComplex(arg any) bool
- func IsFloat(arg any) bool
- func IsInteger(arg any) bool
- func IsNumber(arg any) bool
- func IsSigned(arg any) bool
- func IsUnSigned(arg any) bool
- func Max[T Number](a, b T, args ...T) (m T)
- func Min[T Number](a, b T, args ...T) (m T)
- func NumberToFloat64(arg any) float64
- type Integer
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CeilToPowerOfTwo ¶
func CeilToPowerOfTwo[T Integer](n T) T
CeilToPowerOfTwo 将整数型的数扩大到2^n,返回0代表执行错误
func FloorToPowerOfTwo ¶
func FloorToPowerOfTwo[T Integer](n T) T
func IsUnSigned ¶
func NumberToFloat64 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.