<?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 to get value 2 places after decimals in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2686#M883</link>
    <description>The ROUND function may do what you want.  CEIL, FLOOR, and INT are also possibilities; check SAS documentaiton for the differences.&lt;BR /&gt;
&lt;BR /&gt;
If you just want the display to be 2 digits after the decimal, then you can apply a format to the variable. &lt;BR /&gt;
&lt;BR /&gt;
Some statistical procedures, like PROC MEANS, sometimes give more decimals than desired.  The only way to force the format is to output the summary statisticis into a dataset and apply a format for printing.</description>
    <pubDate>Tue, 03 Apr 2007 15:25:02 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2007-04-03T15:25:02Z</dc:date>
    <item>
      <title>how to get value 2 places after decimals</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2685#M882</link>
      <description>I have variable in which I am getting a value four places after decimals.&lt;BR /&gt;
I want that value to be 2 places after decimals.&lt;BR /&gt;
&lt;BR /&gt;
for example:&lt;BR /&gt;
a variable v1=0.1234 &lt;BR /&gt;
but  i want the variable value to be only 0.12&lt;BR /&gt;
&lt;BR /&gt;
Is there any function in sas which I can use to achieve this?</description>
      <pubDate>Tue, 03 Apr 2007 14:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2685#M882</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-03T14:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to get value 2 places after decimals</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2686#M883</link>
      <description>The ROUND function may do what you want.  CEIL, FLOOR, and INT are also possibilities; check SAS documentaiton for the differences.&lt;BR /&gt;
&lt;BR /&gt;
If you just want the display to be 2 digits after the decimal, then you can apply a format to the variable. &lt;BR /&gt;
&lt;BR /&gt;
Some statistical procedures, like PROC MEANS, sometimes give more decimals than desired.  The only way to force the format is to output the summary statisticis into a dataset and apply a format for printing.</description>
      <pubDate>Tue, 03 Apr 2007 15:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2686#M883</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2007-04-03T15:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get value 2 places after decimals</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2687#M884</link>
      <description>The other approach, depending on the procedure that's producing the number is to alter the table template used for the procedure, as described in this Tech Support FAQ: &lt;A href="http://support.sas.com/ctx/samples/index.jsp?sid=285&amp;amp;tab=details" target="_blank"&gt;http://support.sas.com/ctx/samples/index.jsp?sid=285&amp;amp;tab=details&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
Although the FAQ discusses PROC FREQ, the techniques are translatable to any procedure that has a table template. To determine the name of the table template that you must change, you would have to use ODS TRACE to find the template name for your output object of interest.&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 03 Apr 2007 16:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2687#M884</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-04-03T16:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to get value 2 places after decimals</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2688#M885</link>
      <description>@ Doc@Duke:&lt;BR /&gt;
&lt;BR /&gt;
With Proc Means you could also use the option MAXDEC = 2.</description>
      <pubDate>Tue, 24 Apr 2007 13:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-get-value-2-places-after-decimals/m-p/2688#M885</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-24T13:07:16Z</dc:date>
    </item>
  </channel>
</rss>

