<?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 question - largest integer represented exactly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903008#M356853</link>
    <description>&lt;P&gt;Hi, I'm not very much understanding it in Windows: if length is 3 , why the largest integer represented exactly is 8,192?&amp;nbsp;&lt;/P&gt;&lt;P&gt;the mantissa is 12 bits ( 24 - 1 -11 = 12), so 2 ^12 = 4096. why it is 8,192?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 17:05:20 GMT</pubDate>
    <dc:creator>wxzhai</dc:creator>
    <dc:date>2023-11-14T17:05:20Z</dc:date>
    <item>
      <title>question - largest integer represented exactly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903008#M356853</link>
      <description>&lt;P&gt;Hi, I'm not very much understanding it in Windows: if length is 3 , why the largest integer represented exactly is 8,192?&amp;nbsp;&lt;/P&gt;&lt;P&gt;the mantissa is 12 bits ( 24 - 1 -11 = 12), so 2 ^12 = 4096. why it is 8,192?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 17:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903008#M356853</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-11-14T17:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: question - largest integer represented exactly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903022#M356856</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406318"&gt;@wxzhai&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I'm not very much understanding it in Windows: if length is 3 , why the largest integer represented exactly is 8,192?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the mantissa is 12 bits ( 24 - 1 -11 = 12), so 2 ^12 = 4096. why it is 8,192?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The most significant bit is not stored.&amp;nbsp; It is implied.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903022#M356856</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-14T18:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: question - largest integer represented exactly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903024#M356858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406318"&gt;@wxzhai&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is the so called "implied bit" (cf.&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings11/241-2011.pdf" target="_blank" rel="noopener"&gt;Numeric Length in SAS®: A Case Study in Decision Making&lt;/A&gt;) that yields another factor 2: If the eleven exponent bits stand for an order of magnitude 2¹², the twelve mantissa bits run from 000000000000,&amp;nbsp; representing 2¹²=4096, through 111111111111, representing&amp;nbsp;2¹²+(2¹²−1)=8191. That is, the first "1" in the actual (mathematical) binary representation of those numbers is omitted (because it's redundant) to save one bit. Finally, 8192 has, again, all mantissa bits zero (like 4096 or any other power of 2), but the exponent increases by 1 to represent&amp;nbsp;2¹³. The next larger integer has mantissa bits&amp;nbsp;000000000001. Due to the increased exponent, this representation means 1.000000000001 [binary!] *&amp;nbsp;2¹³ = 819&lt;STRONG&gt;4&lt;/STRONG&gt;, showing that 8193 cannot be represented with a length of 3 bytes, so in this sense (of &lt;EM&gt;consecutive&lt;/EM&gt; integers) 8192 is the largest.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903024#M356858</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-11-14T18:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: question - largest integer represented exactly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903110#M356877</link>
      <description>&lt;P&gt;thank you! very clear!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 01:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903110#M356877</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-11-15T01:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: question - largest integer represented exactly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903111#M356878</link>
      <description>thank you!</description>
      <pubDate>Wed, 15 Nov 2023 01:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-largest-integer-represented-exactly/m-p/903111#M356878</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-11-15T01:30:12Z</dc:date>
    </item>
  </channel>
</rss>

