Versions in this module Expand all Collapse all v1 v1.0.1 Sep 6, 2022 v1.0.0 Aug 17, 2022 Changes in this version + func AbsFloat(num float64) float64 + func AbsFloat64(num float64) float64 + func AbsInt(num int) int + func AbsInt64(num int64) int64 + func Average(nums ...interface{}) float64 + func AverageFloat(nums ...float64) float64 + func AverageFloat64(nums ...float64) float64 + func AverageInt(nums ...int) float64 + func AverageInt64(nums ...int64) float64 + func Compare(f1, f2 float64, places ...int) int + func Equal(f1, f2 float64, places ...int) bool + func GreaterThan(f1, f2 float64, places ...int) bool + func GreaterThanOrEqual(f1, f2 float64, places ...int) bool + func IsEven(num int64) bool + func IsNegative(f float64) bool + func IsNonNegative(f float64) bool + func IsNonPositive(f float64) bool + func IsOdd(num int64) bool + func IsPositive(f float64) bool + func IsZero(f float64) bool + func LessThan(f1, f2 float64, places ...int) bool + func LessThanOrEqual(f1, f2 float64, places ...int) bool + func Max(nums ...interface{}) float64 + func MaxFloat(nums ...float64) float64 + func MaxFloat64(nums ...float64) float64 + func MaxInt(nums ...int) int + func MaxInt64(nums ...int64) int64 + func Min(nums ...interface{}) float64 + func MinFloat(nums ...float64) float64 + func MinFloat64(nums ...float64) float64 + func MinInt(nums ...int) int + func MinInt64(nums ...int64) int64 + func NumberFormat(num float64, places int, separator ...string) string + func Percent(num, total interface{}) float64 + func RandFloat(min, max float64) float64 + func RandFloat64(min, max float64) float64 + func RandInt(min, max int) int + func RandInt64(min, max int64) int64 + func RangeFloat(start, stop float64, step ...float64) []float64 + func RangeFloat64(start, stop float64, step ...float64) []float64 + func RangeInt(start, stop int, step ...int) []int + func RangeInt64(start, stop int64, step ...int64) []int64 + func Round(f float64, places int) float64 + func RoundBank(f float64, places int) float64 + func RoundBankToString(f float64, places int) string + func RoundToString(f float64, places int) string + func Sign(f float64) int + func SizeFormat(size float64, places int, separator ...string) string + func Sum(nums ...interface{}) float64 + func SumFloat(nums ...float64) float64 + func SumFloat64(nums ...float64) float64 + func SumInt(nums ...int) int + func SumInt64(nums ...int64) int64