From b67e9ca316f35f7efa9535284207b4d91689a284 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 9 Sep 2018 02:31:31 +0200 Subject: [PATCH] Aligned epsilon with other functions --- src/blackmisc/math/mathutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackmisc/math/mathutils.h b/src/blackmisc/math/mathutils.h index 367b1c6af..38fbe2754 100644 --- a/src/blackmisc/math/mathutils.h +++ b/src/blackmisc/math/mathutils.h @@ -64,7 +64,7 @@ namespace BlackMisc //! Epsilon safe zero @{ static bool epsilonZero(double v, double epsilon) { return epsilonEqual(v, 0.0, epsilon); } - static bool epsilonZero(double v) { return epsilonEqual(v, 0.0, 1E-09); } + static bool epsilonZero(double v) { return epsilonEqual(v, 0.0, 1E-06); } static inline bool epsilonZeroLimits(double v) { return qAbs(v) <= std::numeric_limits::epsilon(); } //! @}