ComparisonHelperAreClose - метод
AreClose returns whether or not two doubles are "close". That is, whether or
not they are within epsilon of each other.
There are plenty of ways for this to return false even for numbers which
are theoretically identical, so no code calling this should fail to work if this
returns false.
Пространство имён: Tessa.PlatformСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static bool AreClose(
double value1,
double value2
)
Public Shared Function AreClose (
value1 As Double,
value2 As Double
) As Boolean
public:
static bool AreClose(
double value1,
double value2
)
static member AreClose :
value1 : float *
value2 : float -> bool
- value1 Double
- The first double to compare.
- value2 Double
- The second double to compare.
BooleanThe result of the AreClose comparision.