try to fix NotZero

This commit is contained in:
c9s 2020-06-19 11:14:11 +08:00
parent 332893c882
commit c1e9bc0728

View File

@ -9,7 +9,7 @@ import (
"strconv" "strconv"
) )
const epsilon = 0.00000001 const epsilon = 0.000001
func NotZero(v float64) bool { func NotZero(v float64) bool {
return math.Abs(v) < epsilon return math.Abs(v) < epsilon