Tests whether two real number are equal.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static bool Equals(
	double f1,
	double f2,
	double epsilon
)

Parameters

f1
Type: System..::.Double
A first value.
f2
Type: System..::.Double
A second value.
epsilon
Type: System..::.Double
Allowed difference.

Return Value

trueTruetruetrue (True in Visual Basic) if values differentiate no more than in epsilon, i.e. e.g. f1 is in the range <f2-epsilon,f2+epsilon>.

See Also