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

Namespace for fuzzy comparison functions on `double` values&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DoubleCompareUtil;
----

== Description

This `struct` provides a suite of fuzzy (equality and relational) comparison functions on pairs of `double` values, parameterized by (optionally specified) relative and absolute tolerances&period; Note that all methods are naturally thread&hyphen;safe, and well&hyphen;behaved for all tolerance values&period;

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/DoubleCompareUtil/CompareResult.adoc[`CompareResult`] 
| Enumeration of results from fuzzy comparison of two `double` values&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyCompare-0b.adoc[`fuzzyCompare`] 
| `fuzzyCompare` overloads
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyEq-0f.adoc[`fuzzyEq`] 
| `fuzzyEq` overloads
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyGe-0e.adoc[`fuzzyGe`] 
| `fuzzyGe` overloads
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyGt-0f.adoc[`fuzzyGt`] 
| `fuzzyGt` overloads
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyLe-09e.adoc[`fuzzyLe`] 
| `fuzzyLe` overloads
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyLt-0e8.adoc[`fuzzyLt`] 
| `fuzzyLt` overloads
| xref:BloombergLP/bdlb/DoubleCompareUtil/fuzzyNe-00.adoc[`fuzzyNe`] 
| `fuzzyNe` overloads
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/DoubleCompareUtil/k_DEFAULT_ABSOLUTE_TOLERANCE.adoc[`k&lowbar;DEFAULT&lowbar;ABSOLUTE&lowbar;TOLERANCE`] 
| Default absolute tolerance used by fuzzy comparison functions&period;
| xref:BloombergLP/bdlb/DoubleCompareUtil/k_DEFAULT_RELATIVE_TOLERANCE.adoc[`k&lowbar;DEFAULT&lowbar;RELATIVE&lowbar;TOLERANCE`] 
| Default relative tolerance used by fuzzy comparison functions&period;
|===



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