fixed approximate equality for floats