title: c++ Can I Initialize a variable of type float with a double?
body: <p>Haven't really been able to find much about this. Though compiler doesn't seem to complain when I initialize a variable of type <code>float</code> with a <code>double</code> e.g.</p>
  
  <pre><code>double a = 1.0;
  float b = a;
  </code></pre>
  
  <p>It works fine, but I am still curious if it is OK to do this, and/or is it safe?</p>
  
  <p>(I am on a 32 bit system running windows)</p>