<?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: Round value upto 8 decimal palces in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307022#M65722</link>
    <description>thank you for your reply however I got the output&lt;BR /&gt;by using following function&lt;BR /&gt;Var_new= round(var, 10**-dp)</description>
    <pubDate>Tue, 25 Oct 2016 05:15:16 GMT</pubDate>
    <dc:creator>nishukhawale</dc:creator>
    <dc:date>2016-10-25T05:15:16Z</dc:date>
    <item>
      <title>Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/306766#M65627</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am trying to round off the value upto its 8 decimal places I tried following functions and getting results against it but it is not as expect it to be&lt;/P&gt;&lt;P&gt;e.g. value&amp;nbsp;0.00932304&lt;/P&gt;&lt;P&gt;round function=0&lt;/P&gt;&lt;P&gt;ceil=1&lt;/P&gt;&lt;P&gt;floor=0&lt;/P&gt;&lt;P&gt;int=0&lt;/P&gt;&lt;P&gt;what shall I try so that I can get some result other than these?&lt;/P&gt;&lt;P&gt;I am trying it for column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 13:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/306766#M65627</guid>
      <dc:creator>nishukhawale</dc:creator>
      <dc:date>2016-10-24T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/306767#M65628</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you post the code you've tried ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one works fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
x=0.009323049;
y=round(x,.00000001);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Oct 2016 13:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/306767#M65628</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-10-24T13:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/306792#M65640</link>
      <description>&lt;P&gt;You might also consider just associating an appropriate display format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc print data=your data;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var yourvariable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; format yourvariable f16.8;&lt;/P&gt;
&lt;P&gt;run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will display the value rounded to 8 decimal places and does not require an additional pass through your data to modify the varible(s).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 14:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/306792#M65640</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-24T14:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307018#M65720</link>
      <description>actually I would like make the process automated and Proc print will not work for me. but thank you very much for your reply and good news is I got the answer for that Var_new= round(var, 10**-dp)</description>
      <pubDate>Tue, 25 Oct 2016 04:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307018#M65720</guid>
      <dc:creator>nishukhawale</dc:creator>
      <dc:date>2016-10-25T04:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307022#M65722</link>
      <description>thank you for your reply however I got the output&lt;BR /&gt;by using following function&lt;BR /&gt;Var_new= round(var, 10**-dp)</description>
      <pubDate>Tue, 25 Oct 2016 05:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307022#M65722</guid>
      <dc:creator>nishukhawale</dc:creator>
      <dc:date>2016-10-25T05:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307024#M65723</link>
      <description>yours also gives the same output</description>
      <pubDate>Tue, 25 Oct 2016 05:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307024#M65723</guid>
      <dc:creator>nishukhawale</dc:creator>
      <dc:date>2016-10-25T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Round value upto 8 decimal palces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307132#M65740</link>
      <description>&lt;P&gt;ANY SAS Procedure will accept a format and you can permanently associate the format in either a data step or use Proc Datasets to modify the format for existing variables in existing data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Print was just an example of how to use in&amp;nbsp;a procedure.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 14:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-value-upto-8-decimal-palces/m-p/307132#M65740</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-25T14:08:13Z</dc:date>
    </item>
  </channel>
</rss>

