question on variable type "double"
<p>i have written a program and it works with 3D coordinates (i.e. x,y,z).</p>

<p>input data for my program was like</p>

<pre><code>50903.85 21274.97 15.03 
50903.57 21274.96 15.08 
50903.33 21274.95 15.17 
</code></pre>

<p>and i got the output with some more columns. So, i got the same x,y,z for my output file.</p>

<pre><code>50903.85 21274.97 15.03 
50903.57 21274.96 15.08 
50903.33 21274.95 15.17
</code></pre>

<p>so, my program works properly, i guess.</p>

<p>then, i used another data set, having more digits than the previous data, </p>

<pre><code>512330.98 5403752.71 330.39 
512331.01 5403754.18 329.44 
512331.06 5403755.59 329.56 
</code></pre>

<p>and my output was like;</p>

<pre><code>512331 5.40375e+006 330.39 
512331 5.40375e+006 329.44 
512331 5.40376e+006 329.56 
</code></pre>

<p>here, i am not able to get real values. and x values are also rounded. i cant think what should be the reason?  </p>

<p>in my program, i used "double" for assigning variables for x,y,z values. SO, i would like to know what is the maximum numerical value that can be refereed to double?  </p>

<p>if someone need to work with very long values, what should be the relevant variable? </p>
