title: Adding two floating numbers
body: <p>I was solving a problem in C while I came across another problem. Briefly while running the below code the output is 50.009998. How to correct the answer and why is this happening.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
      float x;
      x = 50.000000 + 0.010000;
      printf("%f\n", x);
      return 0;
  }
  </code></pre>