[#BloombergLP-bdlb-DoubleCompareUtil-fuzzyCompare-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/DoubleCompareUtil.adoc[DoubleCompareUtil]::fuzzyCompare
:relfileprefix: ../../../
:mrdocs:

`fuzzyCompare` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;doublecompareutil&period;h&gt;`

Return the fuzzy comparison result of two `double` values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/DoubleCompareUtil/CompareResult.adoc[DoubleCompareUtil::CompareResult]
xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-028.adoc[fuzzyCompare](
    double a,
    double b);
----

[.small]#xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-028.adoc[_» more&period;&period;&period;_]#

See the overload above for contract&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/DoubleCompareUtil/CompareResult.adoc[DoubleCompareUtil::CompareResult]
xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-02a.adoc[fuzzyCompare](
    double a,
    double b,
    double relTol);
----

[.small]#xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-02a.adoc[_» more&period;&period;&period;_]#

See the overload above for contract&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/DoubleCompareUtil/CompareResult.adoc[CompareResult]
xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-0f.adoc[fuzzyCompare](
    double a,
    double b,
    double relTol,
    double absTol);
----

[.small]#xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

the fuzzy comparison result of `a` and `b`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first value to compare
| *b*
| second value to compare
| *relTol*
| relative tolerance for fuzzy equality
| *absTol*
| absolute tolerance for fuzzy equality
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
