title: C++ method returns 0
body: <p>I have this method that returns 0, and i don't know why.</p>
  
  <p>Method:</p>
  
  <pre><code>double Fraccion::getDivision()
  {
      double d;
      d = numerador/denominador;
      cout &lt;&lt; fixed &lt;&lt; numerador &lt;&lt; "/" &lt;&lt; denominador &lt;&lt; "=" &lt;&lt; d &lt;&lt; endl;
      return d;
  }
  </code></pre>
  
  <p>This is the output console:</p>
  
  <pre><code>Introduce el numerador //This is in the main file
  5
  Introduce el denominador //This is in the main file
  25
  5/25=0.000000
  Division: 0.000000
  </code></pre>