VGConstants.FuzzZero(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 a floating point value should be considered equal to zero within a specified tolerance
public:
static bool FuzzZero(double value, double fuzz);
public static bool FuzzZero (double value, double fuzz);
static member FuzzZero : double * double -> bool
Public Shared Function FuzzZero (value As Double, fuzz As Double) As Boolean
Parameters
- value
- Double
value to compare with zero
- fuzz
- Double
tolerance - must be positive
Returns
true if the value differs by no more than the fuzz value from zero