<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Bernard,&lt;br&gt;&lt;br&gt;You can force it into a string to specify exactly how many decimal points you see. Assuming the CScript module use&lt;br&gt;&lt;br&gt;float x = 5.12345;&lt;br&gt;&lt;br&gt;x = ((int)(x*100.0))/100.0;&lt;br&gt;&lt;br&gt;char buffer[32];&lt;br&gt;sprintf(buffer, &quot;%f&quot;, x);&lt;br&gt;setStrVariable(&quot;x&quot;, buffer);&lt;br&gt;&lt;br&gt;to force it to display X as a string instead of a float.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4973</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4973</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Hi Steven,&lt;br&gt;THanks for your reply.. That did something....&lt;br&gt;I had to remove the &apos;f&apos;s after the 100.0 to get it to run.&lt;br&gt;&lt;br&gt;It now displays the number as follows... 45.320000&lt;br&gt;&lt;br&gt;but sometimes as 45.320001 or 45.319999.&lt;br&gt;&lt;br&gt;It would be nice to be able to remove the extra zeros... &lt;br&gt;Bernard        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4973</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4973</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Bernard,&lt;br&gt;&lt;br&gt;Yes, if you use something like&lt;br&gt;&lt;br&gt;x = (float)((int)(x*100.0f))/100.0f;&lt;br&gt;&lt;br&gt;that will round the number to 2 decimal places. Is that what you need?&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4973</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4973</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Truncating or rounding displayed variables</title>
        <description>
        Hi ,&lt;br&gt;I am measuring small objects under a microscope with RR, and displaying the results with wither the &apos;display Text&apos; function or &apos;display variables&apos; functions. &lt;br&gt;&lt;br&gt;The Variables are being manipulated in the C interpretor and are written out with the setFloatVariable command. &lt;br&gt;&lt;br&gt;Is there an easy way of truncating or removing decimal places from the displayed variables (without turning them to &apos;int&apos; alltogether).&lt;br&gt;&lt;br&gt;eg to display 45.323131&amp;nbsp;&amp;nbsp;as 45.32?&lt;br&gt;many thanks, &lt;br&gt;Bernard        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4973</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4973</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
