It's OK to compare floating-points for equality

lisyarus blog