<?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 Betreff: Giving a True when it should be nil in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305285#M98868</link>
    <description>&lt;P&gt;They are not the same..&lt;/P&gt;
&lt;P&gt;(Rtos (nth 4 item) 2 15) , is it 1.500000000000000 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use function equal [F1]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2018 18:10:41 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2018-10-01T18:10:41Z</dc:date>
    <item>
      <title>Giving a True when it should be nil</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305144#M98864</link>
      <description>&lt;P&gt;I got a routine with the line &lt;SPAN&gt;(/= (nth 4 item) 1.5)&lt;/SPAN&gt;&amp;nbsp;which return "T" for every real that (nth 4 item)&amp;nbsp; return even 1.5???&lt;/P&gt;&lt;P&gt;Does anyone ever experience that?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:19:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305144#M98864</guid>
      <dc:creator>marc_pepin</dc:creator>
      <dc:date>2018-10-01T17:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Giving a True when it should be nil</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305274#M98865</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp;&lt;SPAN&gt;(nth 4 item)&amp;nbsp; return 1.5???&amp;nbsp; (say 1.55555)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then&amp;nbsp;(/= (nth 4 item) 1.5) means&amp;nbsp;(/= 1.55555 1.5) always&amp;nbsp;return "T"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:05:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305274#M98865</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-10-01T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Giving a True when it should be nil</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305278#M98866</link>
      <description>&lt;P&gt;Your (nth 4 item) is not exactly 1.5... Check it with (rtos (nth 4 item) 2 50)... If it returns some numbers after 1.5, then your check is wrong, try changing it to (not (equal (nth 4 item) 1.5 fuzz))... If number from (nth 4 item) is in the fuzz range near 1.5 this fix should return valid check value - nil (not T)...&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:07:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305278#M98866</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2018-10-01T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Giving a True when it should be nil</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305282#M98867</link>
      <description>&lt;P&gt;One of your values that displays as 1.5 may actually be 1.499999999999308 or 1.50000000000276 or something.&amp;nbsp; Comparing &lt;EM&gt;real numbers&lt;/EM&gt;, which can result from various kinds of calculations and extractions that can have such tiny differences,&amp;nbsp;should be done using the (&lt;FONT color="#ff0000"&gt;equal&lt;/FONT&gt;) function with a &lt;FONT color="#008000"&gt;fuzz factor&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(&lt;FONT color="#993300"&gt;not&lt;/FONT&gt; (&lt;FONT color="#ff0000"&gt;equal&lt;/FONT&gt; (nth 4 item) 1.5 &lt;FONT color="#008000"&gt;1e-6&lt;/FONT&gt;))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:09:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305282#M98867</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-10-01T18:09:07Z</dc:date>
    </item>
    <item>
      <title>Betreff: Giving a True when it should be nil</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305285#M98868</link>
      <description>&lt;P&gt;They are not the same..&lt;/P&gt;
&lt;P&gt;(Rtos (nth 4 item) 2 15) , is it 1.500000000000000 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use function equal [F1]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:10:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305285#M98868</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-10-01T18:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Giving a True when it should be nil</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305293#M98869</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... (rtos (nth 4 item) 2 50) ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Don't bother with asking for 50 decimal places.&amp;nbsp; 16 is the most you're ever going to wring out of it.]&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/giving-a-true-when-it-should-be-nil/m-p/8305293#M98869</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-10-01T18:15:29Z</dc:date>
    </item>
  </channel>
</rss>

