| NumericIsZero Method (Single, Single) |
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)
Syntax public static bool IsZero(
float value,
float epsilon
)
Public Shared Function IsZero (
value As Single,
epsilon As Single
) As Boolean
public:
static bool IsZero(
float value,
float epsilon
)
static member IsZero :
value : float32 *
epsilon : float32 -> bool
Parameters
- value
- Type: SystemSingle
The value to test. - epsilon
- Type: SystemSingle
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