VGConstants.FuzzEqual(Double, Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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