<?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: FORMAT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FORMAT/m-p/553889#M154064</link>
    <description>&lt;P&gt;SAS will reserve space for 12 characters to be displayed, and then it will fit the number into it as good as possible.&lt;/P&gt;
&lt;P&gt;If up to 12 digits left of the decimal point are present in your number, the number will be displayed in the usual way, digits to the right of the decimal point will be discarded once they exceed the 12 spaces.&lt;/P&gt;
&lt;P&gt;As long as no more than 12 digits (including the decimal point) are present, everything will be displayed, with the decimal point shifting to wherever it ends up.&lt;/P&gt;
&lt;P&gt;Numbers with more than 12 digits to the left will be displayed in scientific notation.&lt;/P&gt;
&lt;P&gt;Run this code to illustrate this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input number;
format number best12.;
datalines;
1
1.25
1.23456
123456789.12345
123456789012.12345
1234567890123
;
run;

proc print data=test noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;      number

           1
        1.25
     1.23456
123456789.12
123456789012
1.2345679E12
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 09:04:35 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-04-25T09:04:35Z</dc:date>
    <item>
      <title>FORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FORMAT/m-p/553881#M154061</link>
      <description>&lt;P&gt;I tried to understand BEST12 formatting but the manuals do not explained it to my understanding. can somebody explain it with example for me?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FORMAT/m-p/553881#M154061</guid>
      <dc:creator>swayto</dc:creator>
      <dc:date>2019-04-25T08:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FORMAT/m-p/553889#M154064</link>
      <description>&lt;P&gt;SAS will reserve space for 12 characters to be displayed, and then it will fit the number into it as good as possible.&lt;/P&gt;
&lt;P&gt;If up to 12 digits left of the decimal point are present in your number, the number will be displayed in the usual way, digits to the right of the decimal point will be discarded once they exceed the 12 spaces.&lt;/P&gt;
&lt;P&gt;As long as no more than 12 digits (including the decimal point) are present, everything will be displayed, with the decimal point shifting to wherever it ends up.&lt;/P&gt;
&lt;P&gt;Numbers with more than 12 digits to the left will be displayed in scientific notation.&lt;/P&gt;
&lt;P&gt;Run this code to illustrate this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input number;
format number best12.;
datalines;
1
1.25
1.23456
123456789.12345
123456789012.12345
1234567890123
;
run;

proc print data=test noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;      number

           1
        1.25
     1.23456
123456789.12
123456789012
1.2345679E12
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FORMAT/m-p/553889#M154064</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-25T09:04:35Z</dc:date>
    </item>
  </channel>
</rss>

