title: Floating point precision not matching for the value what was actually assigned?
body: <p>I am working on STM32F777 mcu creating application on top of FreeRTOS. STM32F777 comes with double-precision floating point unit. I found this really annoying issue while using floating point units that when I assign a value to a float using a constant or something, for example:</p>
  
  <pre><code>float x = 78.352361;
  </code></pre>
  
  <p>the actual value that I see assigned to variable x when debugging came out to be: <strong>78.3523636</strong></p>
  
  <p>Similarly, when I assigned <strong>17.448636</strong> to the variable x, what I actually saw assigned when debugging was <strong>17.4486351</strong>.</p>
  
  <p>Any ideas, why this is happening and how to resolve this? I want correct precision to be maintained till 6 digits.</p>