title: Precision loss with double C++
body: <p>I'm developing a C++ application that runs on linux environment. I need to store a large value with 6 decimal places. I used a double for that, but after assigning it, it didn't contain the exact value. It was rounded off.</p>
  
  <p>Ex:</p>
  
  <pre><code>double dValue = 79447461534242.913072; //Assignement of value
  </code></pre>
  
  <p>But after doing that , whenever I see the value of dValue, it is something like 79447461534242.906</p>
  
  <p>Can some one let me know why this is happening and suggest me the correct data type which can hold the exact value without losing any precision.</p>