Compartir a través de


LayoutDoubleUtil.AreClose Method (Double, Double)

Determines whether the absolute value of the difference between the specified values is less than the double value 0.00000153.

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

Syntax

'Declaration
Public Shared Function AreClose ( _
    value1 As Double, _
    value2 As Double _
) As Boolean
public static bool AreClose(
    double value1,
    double value2
)
public:
static bool AreClose(
    double value1, 
    double value2
)
static member AreClose : 
        value1:float * 
        value2:float -> bool
public static function AreClose(
    value1 : double, 
    value2 : double
) : boolean

Parameters

  • value1
    Type: Double

    The first value for comparison.

  • value2
    Type: Double

    The second value for comparison.

Return Value

Type: Boolean
Returns true if the difference between the values is less than 0.00000153; otherwise returns false.

.NET Framework Security

See Also

Reference

LayoutDoubleUtil Class

AreClose Overload

Microsoft.VisualStudio.PlatformUI Namespace