<?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 Exponential number issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/770926#M244559</link>
    <description>&lt;PRE&gt;data have;
acct_number = 1000283639994;
run;

/*output*/
1.0002836E12&lt;/PRE&gt;
&lt;P&gt;This is an example of an import of acct_numbers.&amp;nbsp; Some of the number produce an exponential number (see above).&amp;nbsp; What code can I insert to resolve the issue and show the entire number.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 15:44:35 GMT</pubDate>
    <dc:creator>Q1983</dc:creator>
    <dc:date>2021-09-28T15:44:35Z</dc:date>
    <item>
      <title>Exponential number issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/770926#M244559</link>
      <description>&lt;PRE&gt;data have;
acct_number = 1000283639994;
run;

/*output*/
1.0002836E12&lt;/PRE&gt;
&lt;P&gt;This is an example of an import of acct_numbers.&amp;nbsp; Some of the number produce an exponential number (see above).&amp;nbsp; What code can I insert to resolve the issue and show the entire number.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 15:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/770926#M244559</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2021-09-28T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exponential number issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/770927#M244560</link>
      <description>Assign a Format.&lt;BR /&gt;&lt;BR /&gt;format acct_number 32.;&lt;BR /&gt;&lt;BR /&gt;FYI - things like Account Number where you will not do math on the field, you should store them as character.</description>
      <pubDate>Tue, 28 Sep 2021 15:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/770927#M244560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-28T15:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exponential number issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/771005#M244600</link>
      <description>&lt;P&gt;An account number may be called a number, but you will never do calculations with it, so store it as character. This also prevents any possible issue with numeric precision.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 19:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/771005#M244600</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-28T19:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exponential number issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/771012#M244604</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default format SAS will use to display a number when you haven't told it do something else is BEST12.&amp;nbsp; Your number as nore than twelve digits, hence the use of scientific notation to represent it as best it can be in only 12 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know the longest digit strings you have in that field are 13 characters then just tell SAS to use a different format to display the values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  acct_number = 1000283639994;
  format acct_number 13.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do you mean by&amp;nbsp;"import"?&lt;/P&gt;
&lt;P&gt;If the original file is just a text file, like a CSV file, then read this variable as character to begin with in addition to not having to worry about what format is used to display it you won't have to worry about losing data if the number of digits exceeds the maximum that floating point numbers can represent without having gaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 20:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exponential-number-issue/m-p/771012#M244604</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-28T20:05:22Z</dc:date>
    </item>
  </channel>
</rss>

