<?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: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370468#M275741</link>
    <description>Thanks Patrick for your input</description>
    <pubDate>Mon, 26 Jun 2017 10:32:02 GMT</pubDate>
    <dc:creator>ettinenivarma</dc:creator>
    <dc:date>2017-06-26T10:32:02Z</dc:date>
    <item>
      <title>Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370368#M275728</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I request you to help me rounding mean value &amp;nbsp;-0.00015367 to -0.000 , when i round by using below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;STRIP(PUT(round(MEAN,0.001),8.3)); I am getting &lt;STRONG&gt;0.000 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If I increase decimals to&amp;nbsp;&lt;SPAN&gt;round(MEAN,0.0001) &lt;STRONG&gt;{x=STRIP(PUT(round(MEAN,0.0001),8.3)); }&lt;/STRONG&gt;&lt;BR /&gt;in order to get -0.000 but this may effect other data ,if possible please do help me with other way of doing..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in Advance..&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 14:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370368#M275728</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-25T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370370#M275729</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please dont round just convert as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
x=-0.00015367;
x2=put(x,8.3);
put x2=;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Jun 2017 15:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370370#M275729</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-06-25T15:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370371#M275730</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/73816"&gt;@ettinenivarma&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I request you to help me rounding mean value &amp;nbsp;-0.00015367 to -0.000 , when i round by using below code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STRIP(PUT(round(MEAN,0.001),8.3)); I am getting &lt;STRONG&gt;0.000 &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If I increase decimals to&amp;nbsp;&lt;SPAN&gt;round(MEAN,0.0001) &lt;STRONG&gt;{x=STRIP(PUT(round(MEAN,0.0001),8.3)); }&lt;/STRONG&gt;&lt;BR /&gt;in order to get -0.000 but this may effect other data ,if possible please do help me with other way of doing..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks in Advance..&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So maybe you mean something different by the word "rounding" than the ROUND function in SAS means, and something different than the normal mathematical meaning of the word "rounding".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are doing this "rounding" and creating characters, not numbers, is that really what you want? If so, then I think your code works, and I don't understand the point of your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't understand "but this may effect [sic] other data". Could you explain?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 15:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370371#M275730</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-25T15:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370375#M275731</link>
      <description>&lt;P&gt;Yes your correct i mean to say round funcation it self ,Yes my end varaible should be char.&lt;/P&gt;&lt;P&gt;Other data means ,in my varaible i had many observation like mean ,sd &amp;nbsp;values etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;for example : when i round &lt;SPAN&gt;&amp;nbsp; -0.00015367 by using above code i get 0.000 but my requirment is -0.000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your response&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 15:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370375#M275731</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-25T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370377#M275732</link>
      <description>&lt;P&gt;Thanks for quick response.&lt;/P&gt;&lt;P&gt;Your below code gives required output (It truncates ) for that record when i had 0.000XXX but i required do rounding when i had value other then zero value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 16:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370377#M275732</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-25T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370378#M275733</link>
      <description>&lt;P&gt;Would the following suffice?:&lt;/P&gt;
&lt;PRE&gt;data have;
  input mean;
  rmean=round(MEAN,.001);
  if mean lt 0 then rmean=rmean-.00001;
  x=PUT(rmean,8.3);
  cards;
-0.00015367
0
0.00015367
;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 16:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370378#M275733</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-25T16:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370379#M275734</link>
      <description>&lt;P&gt;&amp;nbsp;But &amp;nbsp;could not do hardcoding ".00001" because that &amp;nbsp;variable may contain other &amp;nbsp;values in real time data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks your post sir&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 16:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370379#M275734</guid>
      <dc:creator>varmae</dc:creator>
      <dc:date>2017-06-25T16:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370381#M275735</link>
      <description>&lt;P&gt;Yes, I can not do hardcording of values...&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 17:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370381#M275735</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-25T17:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370382#M275736</link>
      <description>&lt;P&gt;Couldn't you do hard coding for that one case? e.g.:&lt;/P&gt;
&lt;PRE&gt;data have;
  input mean;
  rmean=round(MEAN,.001);
  if mean lt 0 and rmean eq 0 then rmean=rmean-.00001;
  x=PUT(rmean,8.3);
  cards;
-0.00015367
0
0.00015367
;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 17:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370382#M275736</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-25T17:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370383#M275737</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/73816"&gt;@ettinenivarma&lt;/a&gt;&amp;nbsp;&lt;STRIKE&gt;You use the same function, we don't have your code or data or computer in front of us so you're not going to get something that's exact for your code. The 'hardcoding' is for testing and demonstration purposes with the intention that you take the formula and use it on your data with your own variables.&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please disregard above, this is not correct for your situation. Note that 0 is well 0, there's no sign attached to it, which is why you're seeing those results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution proposed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12151"&gt;@Jagadishkatam&lt;/a&gt;&amp;nbsp;seems to produce what you want though, otherwise you're probably likely to need to create your own custom function/format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want = put(myVariable, 8.3);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 17:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370383#M275737</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-25T17:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370387#M275738</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;Thanks for response.&lt;/P&gt;&lt;P&gt;I to convenced same to my boss saying 0 is 0 there will not be any sign to it, he said as it is financial data he wants as suggested above. I already tryied applying round function and put as well but I want to &amp;nbsp;trying different way of doing to get minus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any way thanks all &amp;nbsp;for suggestion and inputs&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 18:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370387#M275738</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-25T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370393#M275739</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/73816"&gt;@ettinenivarma&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I believe you could make this work via a custom format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value fin_fmt(default=10)
     -0.0005 &amp;lt;-&amp;lt; 0    = '-0.000'
    other         =[f32.3]
    ;
run;

data test;
  do i= -0.001 to +0.001 by 0.000001;
    value_num=i;
    value_char=put(i,fin_fmt.);
    value_round=round(i,0.001);
    output;
  end;
  format value_num fin_fmt. i best32.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Capture.JPG" alt="Capture.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/9837i7AED37656AA19029/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 22:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370393#M275739</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-06-25T22:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370467#M275740</link>
      <description>Thanks sir</description>
      <pubDate>Mon, 26 Jun 2017 10:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370467#M275740</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-26T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370468#M275741</link>
      <description>Thanks Patrick for your input</description>
      <pubDate>Mon, 26 Jun 2017 10:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370468#M275741</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-26T10:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370505#M275742</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/73816"&gt;@ettinenivarma&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I believe a custom format is the easiest solution for you.&lt;/P&gt;
&lt;P&gt;Financial reports often use Proc Report and should your boss be very demanding then you can also add conditional formatting to make him/her happy&amp;nbsp;as documented here: &lt;A href="http://support.sas.com/kb/23/353.html" target="_blank"&gt;http://support.sas.com/kb/23/353.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370505#M275742</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-06-26T12:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370521#M275743</link>
      <description>&lt;P&gt;Perhaps the simplest solution:&amp;nbsp; stop rounding your data.&amp;nbsp; Instead, just apply a format for printing purposes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format mean 8.3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then a printing procedure should include the negative sign in the report.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370521#M275743</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-06-26T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370676#M275744</link>
      <description>&lt;P&gt;Thanks astounding, but I need to round my data as it is a requirement from client.. when I apply format just truncation of data happens to decimals but not rounding.. thanks for input&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370676#M275744</guid>
      <dc:creator>ettinenivarma</dc:creator>
      <dc:date>2017-06-26T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370687#M275745</link>
      <description>&lt;P&gt;The discussion has centered around the SAS code, but not on the form of the data being provided to the client.&amp;nbsp; If you are providing a text file, you can easily apply the format to unrounded data.&amp;nbsp; Here's a test program, for example, to illustrate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;data &lt;/FONT&gt;&lt;FONT face="Lucida Console" size="2"&gt;_null_;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;pos =&amp;nbsp; 0.0001345;&lt;/P&gt;
&lt;P&gt;neg = -0.0001345;&lt;/P&gt;
&lt;P&gt;put pos 8.3 ',' neg 8.3;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are exporting a SAS data set to a .csv file, you can take the generated SAS code (available in the log), and change it slightly by adding your own formats to the PUT statement.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370687#M275745</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-06-26T17:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me on rounding the value to 3 decimals places -0.00015367 to -0.000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370816#M275746</link>
      <description>&lt;P&gt;As others have said, the format rounds and keeps the sign.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE ;
  X= +0.0001345; output;
  X= -0.0001345; output;
  X= +0.0005345; output;
  X= -0.0005345; output;
  X= +5345.1234; output;
  X= -5345.1234; output;
  X= +5345.1236; output;
  X= -5345.1236; output;
run;
data WANT;
  set HAVE;
  Y=put(X,10.3);
  putlog Y=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Y=0.000&lt;BR /&gt;Y=-0.000&lt;BR /&gt;Y=0.001&lt;BR /&gt;Y=-0.001&lt;BR /&gt;Y=5345.123&lt;BR /&gt;Y=-5345.123&lt;BR /&gt;Y=5345.124&lt;BR /&gt;Y=-5345.124&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 05:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-on-rounding-the-value-to-3-decimals-places-0/m-p/370816#M275746</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-27T05:52:47Z</dc:date>
    </item>
  </channel>
</rss>

