<?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: Programming Trivia Pop Quiz: Be Different! in BreakPoint</title>
    <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673152#M29552</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/310991"&gt;@jwscs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;answer:&lt;/P&gt;
&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;
&lt;/BLOCKQUOTE&gt;
&lt;LI-SPOILER&gt;
&lt;BLOCKQUOTE&gt;
&lt;LI-SPOILER&gt;might this be a trick question?&lt;BR /&gt;i know that you cannot guarantee x + (y+z) == (x+y)+z for floating points,&lt;BR /&gt;but to compare the same number/bit-representation against each other &lt;STRONG&gt;should never be different.&lt;/STRONG&gt;&lt;/LI-SPOILER&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you look at the definition of floating point numbers, there is a case where it SHOULD be different.&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That condition is what Christian is trying to teach us about with this trivia question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 13:01:06 GMT</pubDate>
    <dc:creator>Ben</dc:creator>
    <dc:date>2017-08-09T13:01:06Z</dc:date>
    <item>
      <title>Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3672612#M29544</link>
      <description>&lt;P&gt;Unlike the &lt;A href="https://forums.ni.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Make-it-TRUE/m-p/3672566" target="_blank"&gt;last question&lt;/A&gt;, this one should be common knowledge for everybody.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;QUESTION: Find a value that will cause the boolean to be TRUE when the code is executed.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BeDifferent.png" style="width: 393px;"&gt;&lt;img src="https://ip1.i.lithium.com/6eacd61397a89eab02263da58a6980c60a34ed8a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32313030333169323146433041304630434443453230412f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="BeDifferent.png" alt="BeDifferent.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 16:25:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3672612#M29544</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2017-08-08T16:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3672618#M29545</link>
      <description>&lt;P&gt;This one is too easy&lt;/P&gt;
&lt;LI-SPOILER&gt;There is &lt;U&gt;not a number&lt;/U&gt; that will return TRUE here.&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 08 Aug 2017 16:36:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3672618#M29545</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2017-08-08T16:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673069#M29549</link>
      <description>&lt;P&gt;answer:&lt;/P&gt;
&lt;LI-SPOILER&gt;might this be a trick question?&lt;BR /&gt;i know that you cannot guarantee x + (y+z) == (x+y)+z for floating points,&lt;BR /&gt;but to compare the same number/bit-representation against each other should never be different.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:41:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673069#M29549</guid>
      <dc:creator>jwscs</dc:creator>
      <dc:date>2017-08-09T10:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673152#M29552</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/310991"&gt;@jwscs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;answer:&lt;/P&gt;
&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;
&lt;/BLOCKQUOTE&gt;
&lt;LI-SPOILER&gt;
&lt;BLOCKQUOTE&gt;
&lt;LI-SPOILER&gt;might this be a trick question?&lt;BR /&gt;i know that you cannot guarantee x + (y+z) == (x+y)+z for floating points,&lt;BR /&gt;but to compare the same number/bit-representation against each other &lt;STRONG&gt;should never be different.&lt;/STRONG&gt;&lt;/LI-SPOILER&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you look at the definition of floating point numbers, there is a case where it SHOULD be different.&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That condition is what Christian is trying to teach us about with this trivia question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:01:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673152#M29552</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2017-08-09T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673213#M29553</link>
      <description>&lt;P&gt;ok found it...&lt;/P&gt;
&lt;LI-SPOILER&gt;thought about NaN .. but searched for a constant, didn't enter my mind before to just write it in &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="strange-math2.png" style="width: 133px;"&gt;&lt;img src="https://ip1.i.lithium.com/eff3834c9716c837ab84576fa4d6677ec21a1a5e/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32313031373969444234453735373943324641323845302f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="strange-math2.png" alt="strange-math2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;guess from mathematical standpoint it makes sense, since the value is undefined&lt;BR /&gt;links: &lt;A href="https://en.wikipedia.org/wiki/IEEE_754#Formats" target="_blank"&gt;https://en.wikipedia.org/wiki/IEEE_754#Formats&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/1565164/what-is-the-rationale-for-all-comparisons-returning-false-for-ieee754-nan-values" target="_blank"&gt;https://stackoverflow.com/questions/1565164/what-is-the-rationale-for-all-comparisons-returning-false-for-ieee754-nan-values&lt;/A&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:02:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3673213#M29553</guid>
      <dc:creator>jwscs</dc:creator>
      <dc:date>2017-08-09T14:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3682698#M29600</link>
      <description>&lt;P&gt;My first guess was either +inf or -inf. &amp;nbsp;Interestingly enough, this returns false. &amp;nbsp;I guess you could prove that a double precision float is countably infinite...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:24:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3682698#M29600</guid>
      <dc:creator>BowenM</dc:creator>
      <dc:date>2017-08-30T21:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3683067#M29601</link>
      <description>&lt;P&gt;@BownM i must disagree with you, since you only have a finite number of bytes for the representation, it follows, that there can only be a finite number of different numbers.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:03:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3683067#M29601</guid>
      <dc:creator>jwscs</dc:creator>
      <dc:date>2017-08-31T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3683155#M29603</link>
      <description>&lt;P&gt;According to &lt;A href="https://en.wikipedia.org/wiki/IEEE_754" target="_blank"&gt;IEEE-754&lt;/A&gt;, there is exactly one unique bit pattern for +inf and -inf, respectively. However, there is a huge number of different NaNs. (&lt;A href="https://en.wikipedia.org/wiki/IEEE_754-1985#Representation_of_non-numbers" target="_blank"&gt;details&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 17:28:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3683155#M29603</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2017-08-31T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3684008#M29615</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/310991"&gt;@jwscs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;@BownM i must disagree with you, since you only have a finite number of bytes for the representation, it follows, that there can only be a finite number of different numbers.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Approximately 18.4*10^18 unique combinations. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;/Y&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:49:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3684008#M29615</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2017-09-04T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Trivia Pop Quiz: Be Different!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3685939#M29626</link>
      <description>&lt;UL class="trans-list"&gt;
&lt;LI&gt;
&lt;UL&gt;
&lt;LI class="flex-container"&gt;
&lt;DIV class="list-item"&gt;
&lt;P class="cn-sentence"&gt;input value:NAN&lt;/P&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 08 Sep 2017 01:57:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Programming-Trivia-Pop-Quiz-Be-Different/m-p/3685939#M29626</guid>
      <dc:creator>FengQingYang</dc:creator>
      <dc:date>2017-09-08T01:57:36Z</dc:date>
    </item>
  </channel>
</rss>

