title: float variable does not store decimal
body: <p>The code I used in C++ is:</p>
  
  <pre><code>float y;
  y=360/100;
  cout&lt;&lt;y;
  </code></pre>
  
  <p>the output is 3.
  Even, if I don't output y, and instead use it for a function like left(y), the value 3 is taken instead of 3.6. But if I define y=360.0/100, it works fine.</p>
  
  <p>By the way, left() is a function included in package made by our CS prof. Left(x) changes the direction by an angle of x degrees towards left. A logo based package.</p>