first commit
This commit is contained in:
7
pkg/tools/float_util.go
Normal file
7
pkg/tools/float_util.go
Normal file
@ -0,0 +1,7 @@
|
||||
package tools
|
||||
|
||||
import "math"
|
||||
|
||||
func Float64EqualsZero(data float64) bool {
|
||||
return math.Abs(data-0) < 1e-5
|
||||
}
|
||||
Reference in New Issue
Block a user