ExtensionMethods.IsNearlyEqual(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper method to determine if a double is the same type of non-real or nearly equal to another double.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsNearlyEqual(double value1, double value2);
public:
[System::Runtime::CompilerServices::Extension]
static bool IsNearlyEqual(double value1, double value2);
public static bool IsNearlyEqual (this double value1, double value2);
static member IsNearlyEqual : double * double -> bool
<Extension()>
Public Function IsNearlyEqual (value1 As Double, value2 As Double) As Boolean
Parameters
- value1
- Double
First double to compare.
- value2
- Double
Second double to compare.
Returns
True if value1
is the same type of non-real as value2
,
or if they are nearly equal. False otherwise.