mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
try to fix NotZero
This commit is contained in:
parent
332893c882
commit
c1e9bc0728
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user