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.

Definition

Пространство имён: Tessa.Platform
Сборка: Tessa (в Tessa.dll) Версия: 4.0.4
C#
public static bool AreClose(
	double value1,
	double value2
)

Параметры

value1  Double
The first double to compare.
value2  Double
The second double to compare.

Возвращаемое значение

Boolean
The result of the AreClose comparision.

См. также