Why can comparing floating-point numbers with == be problematic in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks why testing floating-point numbers for exact equality with == gives surprising results in R and how to compare them safely. It tests understanding of binary representation, accumulated rounding error and tolerance-based comparison with all.equal().