mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
[433-update-yang-models] Moved to fabs to near double equal
This commit is contained in:
committed by
Tomek Mrugalski
parent
6ae3245f23
commit
2ff8d3db8b
@@ -978,7 +978,7 @@ IntElement::equals(const Element& other) const {
|
|||||||
bool
|
bool
|
||||||
DoubleElement::equals(const Element& other) const {
|
DoubleElement::equals(const Element& other) const {
|
||||||
return (other.getType() == Element::real) &&
|
return (other.getType() == Element::real) &&
|
||||||
(str() == other.str());
|
(fabs(d - other.doubleValue()) < 1e-14);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Reference in New Issue
Block a user