다음을 통해 공유


ExtensionMethods.IsNearlyEqual Method

Helper method to determine if a double is the same type of non-real or nearly equal to another double.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
<ExtensionAttribute> _
Public Shared Function IsNearlyEqual ( _
    value1 As Double, _
    value2 As Double _
) As Boolean
‘사용 방법
Dim value1 As Double
Dim value2 As Double
Dim returnValue As Boolean

returnValue = value1.IsNearlyEqual(value2)
public static bool IsNearlyEqual(
    this double value1,
    double value2
)
[ExtensionAttribute]
public:
static bool IsNearlyEqual(
    double value1, 
    double value2
)
static member IsNearlyEqual : 
        value1:float * 
        value2:float -> bool 
public static function IsNearlyEqual(
    value1 : double, 
    value2 : double
) : boolean

Parameters

Return Value

Type: System.Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ExtensionMethods Class

ExtensionMethods Members

Microsoft.VisualStudio.PlatformUI Namespace