<?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 want only 2 decimals in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763718#M30460</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset:&lt;/P&gt;&lt;P&gt;a 243.199965&lt;/P&gt;&lt;P&gt;b 345&lt;/P&gt;&lt;P&gt;c 123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the decimal only 2:&lt;/P&gt;&lt;P&gt;a 243.19&lt;/P&gt;&lt;P&gt;b 345.00&lt;/P&gt;&lt;P&gt;c 123.56&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me in this. thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 20:41:24 GMT</pubDate>
    <dc:creator>Smitha9</dc:creator>
    <dc:date>2021-08-24T20:41:24Z</dc:date>
    <item>
      <title>want only 2 decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763718#M30460</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset:&lt;/P&gt;&lt;P&gt;a 243.199965&lt;/P&gt;&lt;P&gt;b 345&lt;/P&gt;&lt;P&gt;c 123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the decimal only 2:&lt;/P&gt;&lt;P&gt;a 243.19&lt;/P&gt;&lt;P&gt;b 345.00&lt;/P&gt;&lt;P&gt;c 123.56&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me in this. thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 20:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763718#M30460</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2021-08-24T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: want only 2 decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763729#M30461</link>
      <description>&lt;P&gt;Multiply by 100, use the FLOOR function, and divide by 100. Then apply a format with 2 decimals.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 20:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763729#M30461</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-24T20:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: want only 2 decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763731#M30462</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;There is a difference between the internally stored number and displaying a number on a report. You don't explain whether this is for a report or whether you want to change the number of decimal places in the stored data. Consider this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1629838784445.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62969iA12CFF5D235FDD81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1629838784445.png" alt="Cynthia_sas_0-1629838784445.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;You can use the round function to change the internally stored value for a variable (as I do with the creation of the NEWVAR variable). But if you only care about the display for reporting, then you might want to allow the number to have full decimal places when stored.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 21:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/want-only-2-decimals/m-p/763731#M30462</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-08-24T21:00:03Z</dc:date>
    </item>
  </channel>
</rss>

