mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Fix floating point comparison
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user