Share via


VGConstants.FuzzZero(Double, Double) Method

Definition

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

Applies to