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(
	float f1,
	float f2,
	float epsilon
)

Parameters

f1
Type: System..::.Single
A first value.
f2
Type: System..::.Single
A second value.
epsilon
Type: System..::.Single
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