Files
servicebase/pkg/tools/float_util.go
2025-11-18 17:48:20 +08:00

8 lines
108 B
Go

package tools
import "math"
func Float64EqualsZero(data float64) bool {
return math.Abs(data-0) < 1e-5
}