DoubleExtensions.IsEqualTo

Extension Method in DoubleExtensions

Declaration

public static bool IsEqualTo(this double lhs, double rhs, double epsilon = 4.94065645841247E-324)

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.