 | NumericIsZero Method (Double, Double) |
Determines whether a value is zero (regarding a specific tolerance).
Namespace: DigitalRune.MathematicsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntaxpublic static bool IsZero(
double value,
double epsilon
)
Public Shared Function IsZero (
value As Double,
epsilon As Double
) As Boolean
public:
static bool IsZero(
double value,
double epsilon
)
static member IsZero :
value : float *
epsilon : float -> bool
Parameters
- value
- Type: SystemDouble
The value to test. - epsilon
- Type: SystemDouble
The tolerance value.
Return Value
Type:
Boolean if the specified value is zero (within the tolerance); otherwise,
.
Exceptions
Remarks
A value is zero if |x| < epsilon.
See Also