Calc.Equals (Double, Double, Double) Method

Tests if two real numbers are equal within a given tolerance.
Public Shared Function Equals( _ 
ByVal v1 As Double, _ 
ByVal v2 As Double, _ 
ByVal tol As Double
) As Boolean
This language is not supported or no code example is available.
public static bool Equals( 
double v1
double v2
double tol 
)
This language is not supported or no code example is available.
public:  
static bool Equals( 
double v1
double v2
double tol 
)
This language is not supported or no code example is available.
public static function Equals( 
v1 : double
v2 : double
tol : double 
) : boolean;
This language is not supported or no code example is available.

Parameters

v1
double

The first value to compare.

v2
double

The second value to compare.

tol
double

The tolerance.

Return Value

bool

True if v1 and v2 are equal within tolerance.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition