11,571 questions
When dealing with floating point numbers there's a chance that you'll encounter slightly inaccurate results due to how these numbers are stored in memory. Sometimes slight inaccuracy is tolerable, so this extra parameter (for Assert.Equal
overloads that accept float
/double
that that predominantly affected by this) is to allow you to factor a small configurable margin of error when performing the comparison: