copy langext & timeext from bm

This commit is contained in:
2022-10-27 16:00:57 +02:00
commit 568d7bd5e3
39 changed files with 2069 additions and 0 deletions

7
lang/mathext/float.go Normal file
View File

@@ -0,0 +1,7 @@
package mathext
import "math"
func Float64EpsilonEq(v1 float64, v2 float64, eps float64) bool {
return math.Abs(v1-v2) <= eps
}