remove ginext/mongoext (no-dep lib)
This commit is contained in:
7
mathext/float.go
Normal file
7
mathext/float.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package mathext
|
||||
|
||||
import "math"
|
||||
|
||||
func Float64EpsilonEq(v1 float64, v2 float64, eps float64) bool {
|
||||
return math.Abs(v1-v2) <= eps
|
||||
}
|
Reference in New Issue
Block a user