tl;dr
You should compare two floating-point numbers for equality in C# as follows:
tolerance
must be much larger than double.Epsilon
.
You should compare two floating-point numbers for equality in C# as follows:
tolerance
must be much larger than double.Epsilon
.