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

@@ -48,7 +48,7 @@ namespace BlackMisc
double CMeasurementUnit::roundToEpsilon(double value) const
{
if (this->getEpsilon() == 0 || this->isNull()) { return value; }
if (qFuzzyIsNull(getEpsilon()) || this->isNull()) { return value; }
return CMathUtils::roundEpsilon(value, this->getEpsilon());
}