title: Visual Studio not returning correct C float values
body: <p>I am doing some fairly simple math in visual studio 2019 with C, but floats are returning with incorrect values. While debugging I simplified the example down to just a quick return, but something is still off because there's no math included in my example. Is there something missing from my environment?</p>
  
  <p>NOTE: I can return integers with no problem.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
     float e = simple_float();
     printf("after return : %.2f\n", e);
  
     return 0;
  }
  
  float simple_float() {
      float a = 5.63129;
      printf("before return : %.2f\n", a);
      return 5.63129;
  }
  </code></pre>
  
  <p>But the output is displaying as such:</p>
  
  <p><a href="https://i.stack.imgur.com/fd5KZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fd5KZ.png" alt="enter image description here"></a></p>