Partilhar via


VGConstants.FuzzEqual(Double, Double, Double) Method

Definition

Determines whether two floating point values are considered equal within a specified tolerance

public:
 static bool FuzzEqual(double first, double second, double fuzz);
public static bool FuzzEqual (double first, double second, double fuzz);
static member FuzzEqual : double * double * double -> bool
Public Shared Function FuzzEqual (first As Double, second As Double, fuzz As Double) As Boolean

Parameters

first
Double

first value to compare

second
Double

second value to compare

fuzz
Double

tolerance - must be positive

Returns

true if the first and second values differ by no more than the fuzz value

Applies to