<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Errors when loading objects from 8.1 in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48629#M39604</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I've been getting errors that say: "Use of real types can result in precision problems"&lt;BR /&gt;
&lt;BR /&gt;
Is there any easy fix? I have library parts called Easy Cabintry and I don't understand how to fix the line of code.&lt;BR /&gt;
&lt;BR /&gt;
Here is one line of code where I get the error:&lt;BR /&gt;
&lt;BR /&gt;
    if int(num)&amp;lt;&amp;gt;num and num-int(num)&amp;gt;.001 then oddwidth=a-(int(num)*maxwd) else oddwidth=0&lt;BR /&gt;
&lt;BR /&gt;
I fixed the line of code in a libary part I made with help from my reseller. I added- IF ABS (x-3'-0") &amp;lt;.001 then blah blah blah. &lt;BR /&gt;
&lt;BR /&gt;
I'm going to keep trying to solve it myself and I know I didn't give you guys much to go on but if there is an easy fix please let me know.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele&lt;BR /&gt;
&lt;BR /&gt;
Is there a spot we can praise resellers because mine is great and I wish I could tell everyone so they know!!!&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Oct 2004 19:49:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-10-26T19:49:32Z</dc:date>
    <item>
      <title>Errors when loading objects from 8.1</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48629#M39604</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I've been getting errors that say: "Use of real types can result in precision problems"&lt;BR /&gt;
&lt;BR /&gt;
Is there any easy fix? I have library parts called Easy Cabintry and I don't understand how to fix the line of code.&lt;BR /&gt;
&lt;BR /&gt;
Here is one line of code where I get the error:&lt;BR /&gt;
&lt;BR /&gt;
    if int(num)&amp;lt;&amp;gt;num and num-int(num)&amp;gt;.001 then oddwidth=a-(int(num)*maxwd) else oddwidth=0&lt;BR /&gt;
&lt;BR /&gt;
I fixed the line of code in a libary part I made with help from my reseller. I added- IF ABS (x-3'-0") &amp;lt;.001 then blah blah blah. &lt;BR /&gt;
&lt;BR /&gt;
I'm going to keep trying to solve it myself and I know I didn't give you guys much to go on but if there is an easy fix please let me know.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele&lt;BR /&gt;
&lt;BR /&gt;
Is there a spot we can praise resellers because mine is great and I wish I could tell everyone so they know!!!&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Oct 2004 19:49:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48629#M39604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-26T19:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when loading objects from 8.1</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48630#M39605</link>
      <description>Hi Michele,&lt;BR /&gt;
&lt;BR /&gt;
This is just a warning message AFAIK.  Everything is interpretted as it was in the past, but Checkscript is just trying to help.&lt;BR /&gt;
&lt;BR /&gt;
The "if" statement that you show is fine...&lt;BR /&gt;
&lt;BR /&gt;
And, your reseller correctly suggested using:&lt;BR /&gt;
&lt;BR /&gt;
epsilon = 0.001&lt;BR /&gt;
...&lt;BR /&gt;
IF ABS(X-3') &amp;lt; epsilon THEN&lt;BR /&gt;
&lt;BR /&gt;
for suitably small epsilon, instead of&lt;BR /&gt;
&lt;BR /&gt;
IF X = 3' THEN&lt;BR /&gt;
&lt;BR /&gt;
This will affect Imperial users the most, but Metric users are not immune.  (While AC and GDL use metric internally: 1 = 1 meter, anything less than 1 meter is represented by a decimal fraction which is a potentially infinite binary number inside the computer, chopped off at the number of bits used for real numbers (representational error), and then when something like subtraction is performed, you get compounding of that error... hence the use of epsilon comparison such as above to account for such things.&lt;BR /&gt;
&lt;BR /&gt;
Note, if X is a parameter and you want to know if the user typed exactly 3' (or a VALUE list etc resulted in that), then the epsilon comparison isn't needed, since 3' (as typed, converted and stored) = 3' (as typed, converted and stored).  It is generally only an issue if some arithmetic has been performed.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Tue, 26 Oct 2004 22:44:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48630#M39605</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-10-26T22:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when loading objects from 8.1</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48631#M39606</link>
      <description>Thanks Karl for explaining it. I think I understand it in my limited way. I have library parts from Easy cabnitry and there is (amonst others) a line of code that gets errors:&lt;BR /&gt;
&lt;BR /&gt;
 if int(num)&amp;lt;&amp;gt;num and num-int(num)&amp;gt;.001 then oddwidth=a-(int(num)*maxwd) else oddwidth=0 &lt;BR /&gt;
&lt;BR /&gt;
I didn't write the code and when I do write code it very simple &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;. Would you know how to fix the above line of code?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele</description>
      <pubDate>Wed, 27 Oct 2004 17:49:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Errors-when-loading-objects-from-8-1/m-p/48631#M39606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-27T17:49:42Z</dc:date>
    </item>
  </channel>
</rss>

