Why reading Floating point number from file gives rounded output?
<p>i have a file and two inputs are shown below:</p>

<blockquote>
  <p>34.800287000  0.077352000</p>
</blockquote>

<p>i'm reading from a file(by getline then define stringstream) and saving it in my class variables which are both defined <strong>double</strong>. However
when i check my variables i see that:</p>

<blockquote>
  <p>34.8003 0.077352</p>
</blockquote>

<p><strong>EDIT:</strong> i'm using cout to check my variables.</p>

<p>why is that ?</p>

<p>thanks.</p>
