<?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: When I use the check script, I get this error. in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358302#M1352</link>
    <description>&lt;P&gt;You would expect the core to be an integer (0, 1 or 3), but because WALL_SKINS_PARAMS can also tell you the skin thickness, the entire parameter is probably treated as a real number (just my guess).&lt;/P&gt;
&lt;P&gt;So the core value (although it may be exactly '3') is also treated as a real number, which means it could have a decimal precision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are then trying to compare something that may have a decimal precision with something that does not - hence the message to say "Use of real types can result in precision problems".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case it is just a warning and can probably be ignored - you will only see it when checking the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or it is a case of scripting as DGSketcher suggested to allow for a small decimal range (error).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 02:48:37 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2022-10-10T02:48:37Z</dc:date>
    <item>
      <title>When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358279#M1349</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeeJaeYoung_0-1665337746789.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30497i90FED50DF96BA6DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeeJaeYoung_0-1665337746789.png" alt="LeeJaeYoung_0-1665337746789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;IF WALL_SKINS_PARAMS[i][6] = 3 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;• [6] core status&lt;BR /&gt;core status: 0 - not part, 1 - part, 3 - last core skin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2022 17:55:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358279#M1349</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2022-10-09T17:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358285#M1350</link>
      <description>&lt;P&gt;This is generated when using = to compare REAL values. It works with INTEGERS but GDL is prone to false results for Real values due to precision.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The usual workaround in your coding is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EPS = 0.0001 !or some other small value to suit your object&lt;/P&gt;&lt;P&gt;IF ABS (WALL_SKINS_PARAMS[i][6] - 3.00) &amp;lt; eps THEN...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this way if the divergence between values is less the EPS then the result will be TRUE, and any value greater than 3.00 will be FALSE&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2022 21:35:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358285#M1350</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2022-10-09T21:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358297#M1351</link>
      <description>&lt;P&gt;So is this real value?&lt;BR /&gt;I understand it as an integer....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is INT(WALL_SKINS_PARAMS[i][6]) = 3 ok?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 01:35:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358297#M1351</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2022-10-10T01:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358302#M1352</link>
      <description>&lt;P&gt;You would expect the core to be an integer (0, 1 or 3), but because WALL_SKINS_PARAMS can also tell you the skin thickness, the entire parameter is probably treated as a real number (just my guess).&lt;/P&gt;
&lt;P&gt;So the core value (although it may be exactly '3') is also treated as a real number, which means it could have a decimal precision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are then trying to compare something that may have a decimal precision with something that does not - hence the message to say "Use of real types can result in precision problems".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case it is just a warning and can probably be ignored - you will only see it when checking the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or it is a case of scripting as DGSketcher suggested to allow for a small decimal range (error).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 02:48:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358302#M1352</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-10-10T02:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358306#M1353</link>
      <description>&lt;P&gt;thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 03:44:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358306#M1353</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2022-10-10T03:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358708#M1354</link>
      <description>&lt;P&gt;In this case, when the stored value is surely an integer, round_int might be easier to read.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 08:34:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358708#M1354</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-10-14T08:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: When I use the check script, I get this error.</title>
      <link>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358712#M1355</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14532"&gt;@Peter Baksa&lt;/a&gt;&amp;nbsp;Thank you for your guidance. I had forgotten that option. Might need to review some of my coding...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:14:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/When-I-use-the-check-script-I-get-this-error/m-p/358712#M1355</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2022-10-14T09:14:17Z</dc:date>
    </item>
  </channel>
</rss>

