次の方法で共有


ExtensionMethods.IsNearlyEqual(Double, Double) Method

Definition

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.

Applies to