<?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 Re: Use of real types... in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210457#M15811</link>
    <description>David, try:&lt;BR /&gt;

&lt;PRE&gt;IF heel_height - bottom_cord_height - plumb_cut_topcord &amp;lt; 0.0001 THEN...&lt;/PRE&gt;

A better option, especially if you're going to test this condition multiple times, would be:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Master Script:&lt;/B&gt;&lt;PRE&gt;EPS = 0.0001&lt;/PRE&gt;

&lt;B&gt;2D/3D scripts:&lt;/B&gt;&lt;PRE&gt;IF heel_height - bottom_cord_height - plumb_cut_topcord &amp;lt; EPS THEN...&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Dec 2011 02:38:30 GMT</pubDate>
    <dc:creator>vistasp</dc:creator>
    <dc:date>2011-12-06T02:38:30Z</dc:date>
    <item>
      <title>Use of real types...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210456#M15810</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I am writing a script for a roof truss.  I have to test for three conditions at the heel.  For one of the conditions I am testing for zero  ie  IF heel_height - bottom_cord_height - plumb_cut_topcord = 0 THEN............ but i keep getting a warning "use of real types can result in precision problems"&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to get around this warning?  Is testing for zero what causes it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
&lt;BR /&gt;
David&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Dec 2011 22:47:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210456#M15810</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2011-12-05T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use of real types...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210457#M15811</link>
      <description>David, try:&lt;BR /&gt;

&lt;PRE&gt;IF heel_height - bottom_cord_height - plumb_cut_topcord &amp;lt; 0.0001 THEN...&lt;/PRE&gt;

A better option, especially if you're going to test this condition multiple times, would be:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Master Script:&lt;/B&gt;&lt;PRE&gt;EPS = 0.0001&lt;/PRE&gt;

&lt;B&gt;2D/3D scripts:&lt;/B&gt;&lt;PRE&gt;IF heel_height - bottom_cord_height - plumb_cut_topcord &amp;lt; EPS THEN...&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2011 02:38:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210457#M15811</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2011-12-06T02:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use of real types...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210458#M15812</link>
      <description>You might want to make this ... &lt;FONT color="#ff0000"&gt;IF ABS(heel_height - bottom_cord_height - plumb_cut_topcord) &amp;lt; 0.0001 THEN&lt;/FONT&gt;...&lt;BR /&gt;
&lt;BR /&gt;
Just in case you do have the situation where you might have a negative value.&lt;BR /&gt;
Otherwise any negative value will be less than the tollerence and will trigger the condition.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 06 Dec 2011 03:01:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210458#M15812</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-12-06T03:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use of real types...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210459#M15813</link>
      <description>The other way is to change the value to string and check if the string  ="0" (if the STR parameters set to put 1 character)&lt;BR /&gt;
&lt;BR /&gt;
If the object has some predefined heights/lenghts/whatever it is kind of useful.&lt;BR /&gt;
&lt;BR /&gt;
But if the only one thingy is checked - the  mentioned before solutions are better.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 07:46:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210459#M15813</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T07:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Use of real types...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210460#M15814</link>
      <description>Piotr, Barry and Vistasp,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the insight and suggestions, I will try these and see if i can get to run as i think it should.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 06 Dec 2011 15:37:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210460#M15814</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2011-12-06T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use of real types...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210461#M15815</link>
      <description>Please see this thread.&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=44256&amp;amp;highlight=real+types#44256" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... ypes#44256"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=44256&amp;amp;highlight=real+types#44256&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 06 Dec 2011 22:27:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Use-of-real-types/m-p/210461#M15815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T22:27:25Z</dc:date>
    </item>
  </channel>
</rss>

