//
pkg.gl
Category
github.com/thinkgos/x
extmath
package
0.4.1
Repository:
https://github.com/thinkgos/x.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
0
Files
75 SLOC
#
Functions
Abs
Abs 整型取绝对值.
Gcd
Gcd get Greatest Common Divisor.
GcdSlice
GcdSlice get Greatest Common Divisor.
Gcdx
Gcdx get Greatest Common Divisor.
Lcm
Lcm get least common multiple.
Pow
Pow is int64 type of math.Pow function.
Range
Range 根据范围创建数组,包含指定的元素.
Round
Round 数值保留小数点,n为保留小数点位数.