<?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: how many digits can store in the one byte of memory of numeric variable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796469#M255585</link>
    <description>&lt;P&gt;I assume this is a theoretical question as you can't define a 1 byte numeric variable in SAS. For Windows / Unix the minimum is 3 bytes.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 07:21:54 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-02-16T07:21:54Z</dc:date>
    <item>
      <title>how many digits can store in the one byte of memory of numeric variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796430#M255568</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Hi, I have a question? numeric and character data has default length is 8 bytes.&lt;/SPAN&gt; &lt;SPAN class=""&gt;In the character data "one byte for one character." Then how many digits can store in one byte?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Feb 2022 02:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796430#M255568</guid>
      <dc:creator>balu_g</dc:creator>
      <dc:date>2022-02-16T02:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: how many digits can store in the one byte of memory of numeric variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796436#M255572</link>
      <description>&lt;P&gt;Search for "SAS numeric precision".&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 02:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796436#M255572</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-02-16T02:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: how many digits can store in the one byte of memory of numeric variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796462#M255582</link>
      <description>&lt;P&gt;You can store 256 numbers, 0 to 255. They have 1 to 3 digits.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796462#M255582</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2022-02-16T06:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: how many digits can store in the one byte of memory of numeric variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796469#M255585</link>
      <description>&lt;P&gt;I assume this is a theoretical question as you can't define a 1 byte numeric variable in SAS. For Windows / Unix the minimum is 3 bytes.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 07:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796469#M255585</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-16T07:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: how many digits can store in the one byte of memory of numeric variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796493#M255597</link>
      <description>&lt;P&gt;It depends on how you store your numbers.&lt;/P&gt;
&lt;P&gt;If stored as &lt;EM&gt;character&lt;/EM&gt; in human-readable form, you obviously have one digit per byte.&lt;/P&gt;
&lt;P&gt;If stored as &lt;EM&gt;character&lt;/EM&gt;, but with the IBM packed decimal format, you have 2 digits per byte.&lt;/P&gt;
&lt;P&gt;If you do some trickery and work with pure integers in &lt;EM&gt;character&lt;/EM&gt; strings, each byte can hold 256 numbers, so the number of digits is that of the number 256 ** (number of bytes) - 1.&lt;/P&gt;
&lt;P&gt;As mentioned, &lt;EM&gt;numeric&lt;/EM&gt; has a minimum length of 3, and for that, search for "SAS numeric precision" to know how the storage lengths influence the maximum precision and the largest integer that can be stored exactly.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796493#M255597</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-16T09:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: how many digits can store in the one byte of memory of numeric variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796579#M255635</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/81451"&gt;@balu_g&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Hi, I have a question? numeric and character data has default length is 8 bytes.&lt;/SPAN&gt; &lt;SPAN class=""&gt;In the character data "one byte for one character." Then how many digits can store in one byte?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For actual use in SAS datasets, that is a question of little concern as the smallest numeric variable in bytes is 2 or 3 (and mostly 3 IIRC)&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refDictEntry"&gt;
&lt;DIV class="xis-syntax"&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-otherArgGroup"&gt;
&lt;DIV id="n1wsa98sy5e46rn1e6yhc9reexj9" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;DIV id="n1h552aivyqhehn1bwxpyx4rvl5b" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;&lt;FONT style="background-color: #fcdec0;"&gt;length&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;specifies a numeric constant that is the number of bytes used for storing variable values.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryRange"&gt;Range&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;For numeric variables, 2 to 8 or 3 to 8, depending on your operating environment. For character variables, 1 to 32767 under all operating environments.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 15:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-many-digits-can-store-in-the-one-byte-of-memory-of-numeric/m-p/796579#M255635</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-16T15:37:21Z</dc:date>
    </item>
  </channel>
</rss>

