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.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
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.