2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[433-update-yang-models] Moved to fabs to near double equal

This commit is contained in:
Francis Dupont
2019-08-13 14:35:45 +02:00
committed by Tomek Mrugalski
parent 6ae3245f23
commit 2ff8d3db8b

View File

@@ -978,7 +978,7 @@ IntElement::equals(const Element& other) const {
bool
DoubleElement::equals(const Element& other) const {
return (other.getType() == Element::real) &&
(str() == other.str());
(fabs(d - other.doubleValue()) < 1e-14);
}
bool