Utility.CompareWithoutTolerance Method

Compares two floating point numbers witohut using a tolerance (for Sorting methods).
Public Shared Function CompareWithoutTolerance( _ 
ByVal a As Double, _ 
ByVal b As Double
) As Integer
This language is not supported or no code example is available.
public static int CompareWithoutTolerance( 
double a
double b 
)
This language is not supported or no code example is available.

Parameters

a
double

First number

b
double

Second number

Return Value

int

Returns -1: first < second 0: first == second +1: first > second

.NET Framework

Supported in: 4.8

In this article

Definition