Nevron Open Vision Documentation
Nevron.Nov Namespace / NMath Class / EqualsEpsilon Method
Optional allowed difference. By default set to 1/10-milionth (1E-07).


In This Topic
    EqualsEpsilon Method (NMath)
    In This Topic
    Returns true if value1 equals value2 with a given value (epsilon).
    Syntax
    'Declaration
     
    
    Public Shared Function EqualsEpsilon( _
       ByVal value1 As System.Double, _
       ByVal value2 As System.Double, _
       Optional ByVal epsilon As System.Double _
    ) As System.Boolean
    'Usage
     
    
    Dim value1 As System.Double
    Dim value2 As System.Double
    Dim epsilon As System.Double
    Dim value As System.Boolean
     
    value = NMath.EqualsEpsilon(value1, value2, epsilon)
    public static System.bool EqualsEpsilon( 
       System.double value1,
       System.double value2,
       System.double epsilon
    )

    Parameters

    value1
    value2
    epsilon
    Optional allowed difference. By default set to 1/10-milionth (1E-07).
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also