<?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 function NOT WORKING in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475937#M122418</link>
    <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt; for all your help and reference!&lt;/P&gt;&lt;P&gt;Although I have no any basis of binary&amp;nbsp;&lt;SPAN&gt;arithmetic or&amp;nbsp;decimal arithmetic, I will try to understand it at first.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 09:58:28 GMT</pubDate>
    <dc:creator>JohnChen_TW</dc:creator>
    <dc:date>2018-07-06T09:58:28Z</dc:date>
    <item>
      <title>Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475891#M122399</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm using SAS version 9.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to ask why the number &lt;SPAN&gt;0.1254931228765&lt;FONT color="#FF0000"&gt;450&lt;/FONT&gt;&lt;/SPAN&gt; imported from an excel file cannot be rounded off to &lt;SPAN&gt;0.1254931228765&lt;FONT color="#FF0000"&gt;5&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, but another number&amp;nbsp;0.8216087968183&lt;FONT color="#FF0000"&gt;150&lt;/FONT&gt; can be rounded off to&amp;nbsp;0.8216087968183&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code is &lt;STRONG&gt;X=ROUND(Y, 0.00000000000001); format X BEST32.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475891#M122399</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-06T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475895#M122401</link>
      <description>&lt;P&gt;The reason is the numerical precision of SAS number's is limited to a maximum of 15 digits and you are trying to round off at the extremity of the range SAS can handle. So some numbers may work and others may not.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0ji1unv6thm0dn1gp4t01a1u0g6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0ji1unv6thm0dn1gp4t01a1u0g6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 03:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475895#M122401</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-06T03:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475902#M122403</link>
      <description>&lt;P&gt;You are on the limits of Excel also. Add 10 to that number, and then subtract 10, and then look at the result.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 05:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475902#M122403</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-06T05:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475923#M122408</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I tried it in excel to add 10 to both numbers&amp;nbsp;and got 10.1254895654575450 and 10.8216087968183150, and then subtracted 10 to get 0.1254895654575450 and 0.82160879681831&lt;FONT color="#FF0000"&gt;6&lt;/FONT&gt;0.&lt;/P&gt;&lt;P&gt;However, their 15th decimal place is still greater than or equal to 5.&lt;/P&gt;&lt;P&gt;I still have no idea why there is the difference between the rounded results of them.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 07:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475923#M122408</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-06T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475926#M122409</link>
      <description>&lt;P&gt;Well, the operation in Excel 2013 with the first number got me these:&lt;/P&gt;
&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="651"&gt;&lt;COLGROUP&gt;&lt;COL width="195" /&gt;&lt;COL width="205" /&gt;&lt;COL width="251" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xl64" style="height: 15.0pt; width: 146pt;" align="right" height="20" width="195"&gt;0,12548956545754500000&lt;/TD&gt;
&lt;TD class="xl64" style="width: 154pt;" align="right" width="205"&gt;10,12548956545750000000&lt;/TD&gt;
&lt;TD class="xl63" style="width: 188pt;" align="right" width="251"&gt;0,12548956545754600&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;And the difference between the first and the third turns out to be this:&lt;/P&gt;
&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="165"&gt;&lt;COLGROUP&gt;&lt;COL width="165" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xl65" style="height: 15.0pt; width: 124pt;" align="right" height="20" width="165"&gt;-0,00000000000000063838&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Bottom line: don't expect reliable results beyond 15 decimal digits in any kind of software that uses 8-byte real.&lt;/P&gt;
&lt;P&gt;And be aware that the peculiarities of handling decimal fractions in binary can cause some quite interesting effects (Note that the +10 number ends at 54575, and the re-calculated number at the end gets two decimal digits after that "back") anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475926#M122409</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-06T08:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475927#M122410</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;very much!&lt;BR /&gt;However, could this test method be applied to any decimal number?&lt;BR /&gt;I've tried another number 0.1254931228765450 which also cannot be rounded to 0.12549312287655, and I got the same number after +/- 10.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475927#M122410</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-06T08:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475930#M122412</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118383"&gt;@JohnChen_TW&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm using SAS version 9.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;These numeric representation issues are platform dependent. What is your operating environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my Windows operating environment ("X64_7PRO platform", using SAS 9.4) I cannot replicate your results. Both numbers (x1, x2) are rounded correctly:&amp;nbsp;r1, r2 are identical to the numbers you wanted to obtain (w1, w2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x1=0.1254895654575450;
w1=0.12548956545755;
x2=0.8216087968183150;
w2=0.82160879681832;
r1=round(x1, 0.00000000000001);
r2=round(x2, 0.00000000000001);
put (r:) (=best32. /) /;
put (r1 w1 r2 w2) (=hex16. /);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;r1=0.12548956545755
r2=0.82160879681832

r1=3FC0100AC5D0911D
w1=3FC0100AC5D0911D
r2=3FEA4A9E880E1957
w2=3FEA4A9E880E1957&lt;/PRE&gt;
&lt;P&gt;Please note that format BEST32. does &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;display numbers with their ultimate (internal) precision. Only formats HEX16. and BINARY64. tell you the absolute truth about the contents of a numeric variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For x1 the least significant bit of the internal representation (Windows environment) represents 2**-55 (approx. 2.78E-17). For x2 it represents 2**-53 (approx. 1.11E-16). So, in both cases this is still well below your rounding unit (1E-14).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475930#M122412</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-07-06T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475931#M122413</link>
      <description>&lt;P&gt;Some numbers will work better because they convert to a finite binary sequence that fits into the 8-byte space. Others will turn into a periodic binary number that can't be converted back reliably.&lt;/P&gt;
&lt;P&gt;Those that work are those that either don't need more binary digits or where the (binary) rounding doesn't change the last decimal digit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475931#M122413</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-06T09:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475936#M122417</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;My operating environment is X32_7PRO. I've updated the decimal number I posted previously to be 0.1254931228765450, and I've tried the format&amp;nbsp;&lt;SPAN&gt;HEX16. to get the result as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x1=0.1254931228765450;
w1=0.12549312287654;
w2=0.12549312287655;
x3=0.8216087968183150;
w3=0.82160879681832;
r1=round(x1, 0.00000000000001);
r3=round(x3, 0.00000000000001);
put (r:) (=best32. /) /;
put (r1 w1 w2 r3 w3) (=hex16. /);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;r1=0.12549312287654
r3=0.82160879681832

r1=3FC010289D5056CB
w1=3FC010289D5056CB
w2=3FC010289D505834
r3=3FEA4A9E880E1957
w3=3FEA4A9E880E1957&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Does the difference between r1 and w2 mean that the number&amp;nbsp;0.1254931228765450 cannot be rounded to&amp;nbsp;0.12549312287655&amp;nbsp;because of the limits of SAS system (maximum of 15 digits)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475936#M122417</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-06T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475937#M122418</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt; for all your help and reference!&lt;/P&gt;&lt;P&gt;Although I have no any basis of binary&amp;nbsp;&lt;SPAN&gt;arithmetic or&amp;nbsp;decimal arithmetic, I will try to understand it at first.&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475937#M122418</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-06T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475945#M122425</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118383"&gt;@JohnChen_TW&lt;/a&gt;: Thanks for providing this interesting example. I think, in this case the relevant "limits" are&amp;nbsp;primarily those of the internal workings of the ROUND function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To quote from the technical paper&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/dealing-with-numeric-representation-error-in-sas-applications.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;"Dealing with Numeric Representation Error in SAS® Applications"&lt;/A&gt;, p. 11:&lt;/P&gt;
&lt;P&gt;"If your applications need more control over rounding than is provided for in the ROUND function, you must define your own rounding routine to be used instead of the SAS ROUND function." (Details on how to do this are then presented.)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 10:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475945#M122425</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-07-06T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475987#M122456</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118383"&gt;@JohnChen_TW&lt;/a&gt;: I've just noticed that you ran into an additional problem: Numeric literals can be written in different ways, e.g. by using scientific notation or not or by appending trailing zeros to the decimals. Although these different notations represent the same value from a mathematical perspective, it can very well happen that&amp;nbsp;SAS interprets these literals differently. That is, the internal representation of the number (visible in HEX16. format) varies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
if 0.00001&amp;gt;1.0E-5 &amp;amp; 1.00E-5&amp;lt;1.000E-5 then put '?!';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In my Windows operating environment both "nonsense" inequalities are evaluated as true. This is due to two different internal representations. (A couple of years ago I found that the sequence&amp;nbsp;1.0E-5, 1.00E-5, &lt;SPAN&gt;1.000E-5,&amp;nbsp;&lt;/SPAN&gt;... switches 96 [!] times between&amp;nbsp;&lt;EM&gt;four&lt;/EM&gt; different internal representations,&amp;nbsp;rather erratically.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, your latest example,&amp;nbsp;0.125493122876545, &lt;EM&gt;would have&lt;/EM&gt; been rounded to&amp;nbsp;0.12549312287655, as desired, &lt;EM&gt;if&lt;/EM&gt; you had entered it as&amp;nbsp;1.25493122876545e-1. Unfortunately, rounding would have failed again, had you entered it as&amp;nbsp;&lt;SPAN&gt;1.25493122876545&lt;STRONG&gt;0&lt;/STRONG&gt;e-1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few variations of your example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
array x x4_ x40-x56
  (0.12549312287654
   0.125493122876540
   0.125493122876541
   0.125493122876542
   0.125493122876543
   0.125493122876544
   0.125493122876545
   0.125493122876546
   0.125493122876547
   0.125493122876548
   0.125493122876549
   0.125493122876550
   0.125493122876551
   0.125493122876552
   0.125493122876553
   0.125493122876554
   0.125493122876555
   0.125493122876556);
file print;
put (x:) (=hex16. /);
run;

data _null_;
array x x4_ x40-x56
  (1.2549312287654e-1
   1.25493122876540e-1
   1.25493122876541e-1
   1.25493122876542e-1
   1.25493122876543e-1
   1.25493122876544e-1
   1.25493122876545e-1
   1.25493122876546e-1
   1.25493122876547e-1
   1.25493122876548e-1
   1.25493122876549e-1
   1.25493122876550e-1
   1.25493122876551e-1
   1.25493122876552e-1
   1.25493122876553e-1
   1.25493122876554e-1
   1.25493122876555e-1
   1.25493122876556e-1);
file print;
put (x:) (=hex16. /);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A comparison of the results shows that the values of x40-x47 (but &lt;EM&gt;not&lt;/EM&gt; the values of x4_ and x48-x56) increase by one unit in the least significant bit (2**-55) just by switching to scientific notation. (Your example value is x45.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not surprisingly, this minor increase can impact rounding in borderline cases, i.e., when the&amp;nbsp;number to be rounded&amp;nbsp;is halfway between the two nearest multiples of the rounding unit, as is the case in your example.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 13:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/475987#M122456</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-07-06T13:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/476170#M122498</link>
      <description>&lt;P&gt;I am also curious to know why you have a need for so many significant digits. Is this required for a particular use case? My point being is if you don't need as many significant digits in your application then you can ROUND reliably with less.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 23:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/476170#M122498</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-06T23:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478309#M123356</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;Thanks for your input.&lt;/P&gt;&lt;P&gt;Yes, that is a particular&amp;nbsp;use case that our vendor requested.&lt;/P&gt;&lt;P&gt;The decimal places of the measurement results are always 15 or 16, so that is why I'd like to know how to import them in SAS completely and&amp;nbsp;&lt;SPAN&gt;accurately.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 09:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478309#M123356</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-16T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478310#M123357</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118383"&gt;@JohnChen_TW&lt;/a&gt; - unfortunately I don't think that is possible with "normal" SAS. Maybe SAS's DS2 is worth checking out? I'm pretty sure that is only available with SAS 9.4 though.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 09:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478310#M123357</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-16T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478312#M123358</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;Many thanks for your&amp;nbsp;input and examples.&lt;/P&gt;&lt;P&gt;Although it may be read&amp;nbsp;in different ways by SAS when using scientific notation or appending trailing zero as you said, the number&amp;nbsp;&lt;SPAN&gt;1.25493122876545e-1 is still rounded off to 0.12549312287654 instead of&amp;nbsp;0.12549312287655.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 09:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478312#M123358</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-16T09:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478313#M123359</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;I've discussed with our vendor and they will provide us the results with 14 decimal places at most in the future. (although I'm still&amp;nbsp;&lt;SPAN&gt;curious how to fix it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your replies:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 10:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478313#M123359</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2018-07-16T10:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Round function NOT WORKING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478562#M123415</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118383"&gt;@JohnChen_TW&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;I've discussed with our vendor and they will provide us the results with 14 decimal places at most in the future. (although I'm still&amp;nbsp;&lt;SPAN&gt;curious how to fix it)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks again for all your replies:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JC&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since the 15-decimal-digits precision is a hard limit imposed by the use of the 8-byte real format for numerical storage, there is no fix until software that works with numbers switches to 128 bits for numerical storage. Given the non-existent statistical relevance of such digits, I don't expect that switch for statistical software in the near future. You might see something in accounting software, where people would want precision down to cents in&amp;nbsp;amounts like&amp;nbsp;the GDP of the US.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 05:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function-NOT-WORKING/m-p/478562#M123415</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-17T05:48:35Z</dc:date>
    </item>
  </channel>
</rss>

