[#BloombergLP-bdlb-DoubleCompareUtil-fuzzyEq-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/DoubleCompareUtil.adoc[DoubleCompareUtil]::fuzzyEq :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `a` and `b` satisfy the fuzzy equality relation (denoted "a ~eq b") as defined by the expression: ` fuzzyCompare(a, b, relTol, absTol) == e_EQUAL ` and `false` otherwise. Optionally specify the relative tolerance `relTol`, or `relTol` and the absolute tolerance `absTol`, used to determine fuzzy equality. If an optional tolerance argument is not specified, a reasonable (implementation‐dependent) default value for that tolerance is used. Note that if either `absTol` or `relTol` is 0.0, that aspect of fuzzy comparison is effectively suppressed, but the behavior of this function is defined. The behavior is undefined unless both 'relTol` and `absTol` are non‐negative, finite numbers (which excludes NaN and infinity). == Synopsis Declared in `<bdlb_doublecompareutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool fuzzyEq( double a, double b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#