Documentation
¶
Index ¶
- func Add(a, b float64) float64
- func BinaryToInt(s string) (int, error)
- func Compare(a, b float64) int
- func DecimalFormat(format string, value int64) string
- func Div(a, b float64, precision int, roundMode string) float64
- func Divisor(a, b int) int
- func Factorial(n int) int
- func Fibonacci(n int) int
- func GenerateRandomNumber(min, max, count int) []int
- func GetBinaryStr(n int) string
- func IsDouble(value string) bool
- func IsEven(n int) bool
- func IsInteger(value string) bool
- func IsNumber(value string) bool
- func IsOdd(n int) bool
- func IsPrime(num int) bool
- func Mul(a, b float64) float64
- func Multiple(a, b int) int
- func Round(value float64, precision int) float64
- func RoundStr(value float64, precision int) string
- func Sqrt(x float64) float64
- func Sub(a, b float64) float64
- func ToStr(value float64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomNumber ¶
GenerateRandomNumber 生成不重复随机数
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.