title: Store division of integers in float value C++
body: <p>I just wanted to ask what happens number wise if i do not typecast integers to float when storing in a float variable like this:</p>
  
  <pre><code>int32 IntVar1 = 100
  int32 IntVar2 = 200
  float FloatVar = IntVar1/IntVar2;
  </code></pre>
  
  <p>Currently i am doing this:</p>
  
  <pre><code>int32 IntVar1 = 100
  int32 IntVar2 = 200
  float FloatVar = float(IntVar1)/float(IntVar2);
  </code></pre>
  
  <p>But in the amount of code i have, this looks really retarded. I thought about changing my int variables to float, but i guess that would be a performance hit. And since the integer values are not supposed to hold any decimals, it feels like a complete waste.</p>
  
  <p>So i wonder, are there any way that option 1 could be working? Or do i have to typecast OR change variables to float? (All typecasting pretty much makes the code unreadable)</p>