<?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: Whole numbers in a column with decimals have odd zeroes behind them in proc print. in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179029#M4298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Format statement in proc print&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input int;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1.01&lt;/P&gt;&lt;P&gt;1.00&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=test;&lt;/P&gt;&lt;P&gt;format int 4.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2015 18:32:32 GMT</pubDate>
    <dc:creator>saidi</dc:creator>
    <dc:date>2015-01-12T18:32:32Z</dc:date>
    <item>
      <title>Whole numbers in a column with decimals have odd zeroes behind them in proc print.</title>
      <link>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179028#M4297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset that contains decimal numbers and non-decimal numbers.&amp;nbsp;&amp;nbsp; When I run a proc print the decimals with trailing zeroes show up following whole digit values, which is odd formatting. Do I need to convert to text strings and then format the numbers using a few formatting lines or is there a single line format command?&amp;nbsp; Using SAS 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default Output &lt;/P&gt;&lt;P&gt;1.01&lt;/P&gt;&lt;P&gt;1.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideal Output&lt;/P&gt;&lt;P&gt;1.01&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 18:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179028#M4297</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-01-12T18:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Whole numbers in a column with decimals have odd zeroes behind them in proc print.</title>
      <link>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179029#M4298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Format statement in proc print&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input int;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1.01&lt;/P&gt;&lt;P&gt;1.00&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=test;&lt;/P&gt;&lt;P&gt;format int 4.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 18:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179029#M4298</guid>
      <dc:creator>saidi</dc:creator>
      <dc:date>2015-01-12T18:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Whole numbers in a column with decimals have odd zeroes behind them in proc print.</title>
      <link>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179030#M4299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saidi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked. Thank you for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 18:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179030#M4299</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-01-12T18:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Whole numbers in a column with decimals have odd zeroes behind them in proc print.</title>
      <link>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179031#M4300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc print data=test;&lt;/P&gt;&lt;P&gt;format int best.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be what you are looking for. Most formats that use a decimal assignment such as 4.2 will always display the specified number of decimals padding with 0 as needed per your experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 18:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Whole-numbers-in-a-column-with-decimals-have-odd-zeroes-behind/m-p/179031#M4300</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-12T18:40:07Z</dc:date>
    </item>
  </channel>
</rss>

