title: Float Static Cast for Division
body: <p>I'm learning about the static cast command so I made this simple program. The two numbers being divided are Integers so I used a float cast to force it to do floating point division, however when I run the program the result is Integer division with the decimal being truncated. I am coding in visual c++ and using Visual Studio 2013.
  Thanks for any help :)</p>
  
  <pre><code>void PrintAnwser(Fraction Fract)
  {
  using namespace std;
  float Anwser = static_cast&lt;float&gt;(Fract.firstNumber / Fract.secondNumber);
  cout &lt;&lt; "The result of " &lt;&lt; Fract.firstNumber &lt;&lt; " " &lt;&lt; "Divided by " &lt;&lt;Fract.secondNumber 
  &lt;&lt; " " &lt;&lt; "is " &lt;&lt; Anwser &lt;&lt; endl;
  }
  </code></pre>