Fix floating point comparison

This commit is contained in:
Roland Winklmeier
2018-08-24 14:33:27 +02:00
parent 08e06c6ed1
commit ca9a2e5fd1
4 changed files with 6 additions and 6 deletions

View File

@@ -333,7 +333,7 @@ namespace BlackMisc
bool isEpsilon(double value) const
{
if (this->isNull()) return false;
if (value == 0) return true;
if (qFuzzyIsNull(value)) return true;
return std::abs(value) <= this->m_data->m_epsilon;
}