<div dir="ltr">The precision is set in:<br><div>Wrapping/Tools/vtkWrapTclInit.c:            &quot;  Tcl_SetVar2(interp, \&quot;tcl_precision\&quot;, (char *) NULL, \&quot;6\&quot;, TCL_GLOBAL_ONLY);\n&quot;);<br></div><div>
<br></div><div style>Try changing the 6 to 12 and see if that works.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 3:50 PM, Patrick Lowry <span dir="ltr">&lt;<a href="mailto:plowry.tx@verizon.net" target="_blank">plowry.tx@verizon.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Dear VTK User,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I am using the pre-compiled binary executable for VTK 5.10 and the Tcl/Tk scripting language.  I also have a number of pure Tcl/Tk scripts that do not have VTK method calls and I had notice some time ago that VTK.exe is rounding floating point numbers to six significant digits.  This has happened since the early VTK 5.x releases and on multiple PC platforms.  It did not happened with the 4.x releases.  When I run the same Tcl/Tk script using wish85.exe no rounding occurs.  The image below shows the run window of the same script using VTK.exe and wish85.exe.  Both show the raw data line and the puts of the second two variables.  The one using VTK.exe has rounding and the one using wish85.exe, no rounding. Tcl/Tk has a floating point resolution setting that defaults to 12 significant digits.  Clearly VTK.exe is defaulting to 6.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Can anyone direct me to a setting that will change VTK.exe to work correctly.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Patrick<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><img width="777" height="446" src="cid:image001.jpg@01CE4BFB.5F0F8450"></span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>