8 lines
108 B
Go
8 lines
108 B
Go
package tools
|
|
|
|
import "math"
|
|
|
|
func Float64EqualsZero(data float64) bool {
|
|
return math.Abs(data-0) < 1e-5
|
|
}
|