title: comparison function in g++
body: <p>what is wrong with my code? its converting inches and feet and comparing them in meters. if i enter 12 for inches and 1 for feet it says that the numbers are not equal.  Is this a known issue with g++? Can somebody explain this to me?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  using namespace std;
  
  int main()
  {
      double in, ft, m1, m2;
      cin &gt;&gt; in &gt;&gt; ft;
      m1 = in * 0.0254;
      m2 = ft * 0.3048;
      cout &lt;&lt; m1 &lt;&lt; '\t' &lt;&lt; m2 &lt;&lt; '\n' &lt;&lt; endl;
      // to show that both numbers are equal
      if (m1 == m2) cout &lt;&lt; "yay";
      else cout &lt;&lt; "boo";
  }
  </code></pre>
  
  <p>Does anybody else have this issue?</p>