title: cout.setf(ios::fixed|ios::showpoint); Set precision exceed original number
body: <pre><code>    #include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  using namespace std;
  
  int main()
  {
      float f = 17793.03;
      cout.setf(ios::fixed|ios::showpoint);
      cout&lt;&lt;setprecision(3);
      cout&lt;&lt;f&lt;&lt;endl;
  }
  </code></pre>
  
  <p>result
  17793.029</p>
  
  <p>I used to use Python and I do not know why this happened.
  Thanks</p>