title: (C++)trying to convert double to integer (explaining)
body: <p>saw this in an example </p>
  
  <pre><code>double x = 50.2
  cout &lt;&lt; (double)(int)(x);
  </code></pre>
  
  <p>this works fine , and also it works without the (double) ,
  so why adding the (double) there?</p>