Do not compare floats for equality. Use a 1PPM window instead