| NumericAreEqual Method (Double, Double) |
Determines whether two values are equal (regarding the tolerance
EpsilonD).
Namespace: DigitalRune.MathematicsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static bool AreEqual(
double value1,
double value2
)
Public Shared Function AreEqual (
value1 As Double,
value2 As Double
) As Boolean
public:
static bool AreEqual(
double value1,
double value2
)
static member AreEqual :
value1 : float *
value2 : float -> bool
Parameters
- value1
- Type: SystemDouble
The first value. - value2
- Type: SystemDouble
The second value.
Return Value
Type:
Boolean if the specified values are equal (within the tolerance); otherwise,
.
Remarks Important: When at least one of the parameters is a
NaN the result is undefined. Such cases should be handled explicitly by
the calling application.
See Also