title: How do I get decimals in C++ if I'm using integer variables
body: <p>Here's my code:</p>
  
  <pre><code>class Division{
  public:
      void div(){
      //This is what to use inside the main
      //Division Divide;
      //Divide.div();
      int x;
      int y;
      int div;
      cout &lt;&lt; "Still in Alpha So it only rounds the Number\n";
      cout &lt;&lt; "Enter Your Number\n";
      cin &gt;&gt; x;
      cout &lt;&lt; "Divided by\n";
      cin &gt;&gt; y;
      cout &lt;&lt;  "=";
      div = x/y;
      cout &lt;&lt;  div;
  </code></pre>