FloatExtensions.IsEqualTo

Extension Method in FloatExtensions

Declaration

public static bool IsEqualTo(this float lhs, float rhs, float epsilon = 1.401298E-45F)

Description

Checks for equality with another value given a margin of error specified by an epsilon.

Parameters

lhsThe left-hand side of the equality check.
rhsThe right-hand side of the equality check.
epsilonThe margin of error.

Returns

boolTrue if the values are equal.