<?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: Scientific Notation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169754#M264140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of expressing the value in scientific notation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 17:51:17 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2014-05-26T17:51:17Z</dc:date>
    <item>
      <title>Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169742#M264128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all;&lt;/P&gt;&lt;P&gt;How can I convert&amp;nbsp; the following number &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt; 5039220013916026846870204011588016812266185989865191407731082739149737501542867149897589000557841&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6168937269198370425013463695536280705318595740583841262257709320903463659424481514349542590076222&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1723313516671432465293726789169859417220321898386948547503076332140696583782648654162369257874235&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6286709130989273095836110164802229755436763344720101376000000000000000000000000000000000000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&amp;nbsp; the scientific notation &lt;SPAN style="color: #0000ff;"&gt;5.039220013916026846870204011588e+395&lt;/SPAN&gt;&amp;nbsp; to use it in the same program in anther statement ? &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 18:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169742#M264128</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-22T18:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169743#M264129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this is possible in SAS. As a reference please see the attached link....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#numvar.htm"&gt;SAS(R) 9.2 Companion for Windows, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 19:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169743#M264129</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-05-22T19:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169744#M264130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To work with numbers with a very large number of significant digits (as in 5.039220013916026846870204011588e+395) you need to use Fortran or some other application that allows arbitrarily large numbers.&amp;nbsp; SAS, in common with most applications such as MS Excel, uses the operating system's floating point number storage mechanism which in the case of Windows and Unix allows a maximum of 8 bytes, some of which are used for the sign and the exponent.&amp;nbsp; In practice this allows for 15 digits accuracy (16 for integers provided the initial digit is not 9).&amp;nbsp; zOS allows another digit or so because it uses fewer bits for the exponent.&lt;/P&gt;&lt;P&gt;Oracle (apparently) allows 12 bytes to floating point numbers which allows 23 digits accuracy. &lt;/P&gt;&lt;P&gt;You can treat these numbers as character strings, compute the length to determine the exponent, substring the first &lt;EM&gt;n&lt;/EM&gt; characters for the numerical result, and insert a decimal to make it look like the result you want.&amp;nbsp; But you cannot use the result in calculations in SAS.&amp;nbsp; In the format you specify you cannot even import the data in exponential format because the total width of the informat is limited to 32 characters which includes the exponent, decimal point, signs, and 'e'.&lt;/P&gt;&lt;P&gt;In practical terms it is hard to see where a precision of even 32 digits would be required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 00:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169744#M264130</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-05-23T00:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169745#M264131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's take a big step out of the box here and solve this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14008086521687968" jivemacro_uid="_14008086521687968"&gt;
&lt;P&gt;filename cp temp;&lt;/P&gt;
&lt;P&gt;proc groovy classpath=cp;&lt;/P&gt;
&lt;P&gt;submit parseonly;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14008086604938116" jivemacro_uid="_14008086604938116" modifiedtitle="true"&gt;
&lt;P&gt;import java.math.BigDecimal;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; import java.text.DecimalFormat;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; class SciNote {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static String bigSci(String bigint) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BigDecimal val = new BigDecimal( bigint + ".0" );&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000E0");&lt;/P&gt;
&lt;P&gt;return df.format(val).replace("E","e+");&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14008087163234276" jivemacro_uid="_14008087163234276"&gt;
&lt;P&gt;endsubmit;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;options set=classpath "%sysfunc(pathname(cp,f))";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;length scinote $ 100;&lt;/P&gt;
&lt;P&gt;declare javaobj j('SciNote');&lt;/P&gt;
&lt;P&gt;bigint=&amp;nbsp; "503922001391602684687020401158801681226618598986519140773108273914973750154286714989758900"&lt;/P&gt;
&lt;P&gt;||&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "055784161689372691983704250134636955362807053185957405838412622577093209034636594244815143"&lt;/P&gt;
&lt;P&gt;||&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "495425900762221723313516671432465293726789169859417220321898386948547503076332140696583782"&lt;/P&gt;
&lt;P&gt;||&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "648654162369257874235628670913098927309583611016480222975543676334472010137600000000000000"&lt;/P&gt;
&lt;P&gt;||&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "000000000000000000000000000000000000"&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;j.callStaticStringMethod('bigSci',bigint,scinote);&lt;/P&gt;
&lt;P&gt;put scinote=;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the LOG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scinote=5.039220013916026846870204011588e+395&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 01:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169745#M264131</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-05-23T01:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169746#M264132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS can work with additional datatypes such as bigint, float, etc... within the bounds of PROC DS2, but the general sentiment of your statements is accurate.&amp;nbsp; If you are going to be working consistently within this context, SAS is not currently the appropriate place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 01:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169746#M264132</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-05-23T01:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169747#M264133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@FriedEgg&lt;/P&gt;&lt;P&gt;I'm very grateful to you for drawing my attention to Proc DS2, which is a very recent addition to SAS.&amp;nbsp; I looked at the definition of Float which implies Double allows precision of over 25 significant digits (though the definition is hazy on this point, and the word 'approximate'&amp;nbsp; in the definition is a bit of a worry).&amp;nbsp; So 32 digit precision might be possible within Proc DS2 and Proc FedSQL.&amp;nbsp; But Bigint is limited to 19 digit precision, so I doubt the OP could use these techniques on his data.&lt;/P&gt;&lt;P&gt;My question still is, what is the OP doing with with such large numbers?&lt;/P&gt;&lt;P&gt;The age of the universe is currently reckoned at 13.8 billion years or 4.36e20 seconds.&lt;/P&gt;&lt;P&gt;The observable universe diameter is 8.948e26 meters and even converting that to Angstrom or Planck units will not require 100 significant digits.&lt;/P&gt;&lt;P&gt;The number of atoms in the observable universe is estimated to be between 1e79 and 1e83, counting the total number of particles would only add a couple of orders of magnitude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 04:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169747#M264133</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-05-23T04:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169748#M264134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cryptography is one of areas where numbers of this size are prevalent, to give you a real-world example as you are seeking.&amp;nbsp; Of course, I cannot speak to the OP's purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSA-2048 = 2519590847565789349402718324004839857142928212620403202777713783604366202070&lt;/P&gt;&lt;P&gt;&amp;nbsp; 7595556264018525880784406918290641249515082189298559149176184502808489120072&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8449926873928072877767359714183472702618963750149718246911650776133798590957&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0009733045974880842840179742910064245869181719511874612151517265463228221686&lt;/P&gt;&lt;P&gt;&amp;nbsp; 9987549182422433637259085141865462043576798423387184774447920739934236584823&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8242811981638150106748104516603773060562016196762561338441436038339044149526&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3443219011465754445417842402092461651572335077870774981712577246796292638635&lt;/P&gt;&lt;P&gt;&amp;nbsp; 6373289912154831438167899885040445364023527381951378636564391212010397122822&lt;/P&gt;&lt;P&gt;&amp;nbsp; 120720357&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 15:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169748#M264134</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-05-23T15:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169749#M264135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run the program, the following massage was appeared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename cp temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc groovy classpath=cp;&lt;/P&gt;&lt;P&gt;ERROR: Procedure GROOVY not found.&lt;/P&gt;&lt;P&gt;submit parseonly;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&lt;/P&gt;&lt;P&gt;ERROR: A link must be established by executing the SIGNON command before you can communicate with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PARSEONLY.&lt;/P&gt;&lt;P&gt;WARNING 14-169: Assuming the symbol RSUBMIT was misspelled as submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Remote submit to PARSEONLY cancelled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what can I do?&lt;/P&gt;&lt;P&gt;anther question can I convert the number to the scientific notation in Proc iml???&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 11:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169749#M264135</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-24T11:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169750#M264136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC GROOVY is new in 9.3, so you would require that version or newer to run it.&amp;nbsp; Alternatively, you can still run my example by first creating the Java class outside of SAS.&amp;nbsp; You can find an example I wrote on a different subject for how to go about doing it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="119160" __jive_macro_name="message" class="jive_macro jive_macro_message active_link" href="https://communities.sas.com/" modifiedtitle="true" title="Enable SHA1 Hash MessageDigest in SAS with Javaobj"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for using IML, in SAS/IML Studio the IMLPlus language will allow you to run Java code, which you could use as I've illustrated to perform your operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also process it manually as a array of integers, which is I believe how the BigInteger class in Java works with these numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 14:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169750#M264136</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-05-24T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169751#M264137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I process it manually as a array of integers???&amp;nbsp; &lt;/P&gt;&lt;P&gt;Note that I use SAS 9.2&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 17:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169751#M264137</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-24T17:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169752#M264138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "big question" (ha ha) is what you intend to do with this number. Factor it? Divide by it. Unless you are a researcher in number theory, numbers of this size usually indicate that you should change to a log scale. Statisticians use quantities like log-likelihood and log-determinants because numerical computations that overflow on the original scale succeed on a log scale.&amp;nbsp; Number of this size also arise in combinatorial computations when you try to compute a formula that includes factorials.&amp;nbsp; There are better ways to compute these quantities, so why don't you provide a little background about what you are tryng to accomplish and how this number came up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 11:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169752#M264138</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-05-26T11:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169753#M264139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;Hi Mr. Rick;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;At first I would like to thank you for your cooperation with me.&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;Here I tried to compute the values of "xi" to get it's roots,but when i computed the "xi" I need to compute a big factorial and here the large number appeared and the program stop because of the storage space. So i need to convert the large number to scientific notation to reduce the space.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #365f91; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; &lt;STRONG&gt;iml&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;start BigFactorial(n);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;start LogFact(n);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;return( sum(log(&lt;STRONG&gt;1&lt;/STRONG&gt;:n)) );&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;finish;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; numDigits = ceil(logfact(n)/log(&lt;STRONG&gt;10&lt;/STRONG&gt;)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; f = j(&lt;STRONG&gt;1&lt;/STRONG&gt;,numDigits,&lt;STRONG&gt;0&lt;/STRONG&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; f[&lt;STRONG&gt;1&lt;/STRONG&gt;] = &lt;STRONG&gt;1&lt;/STRONG&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; do i = &lt;STRONG&gt;2&lt;/STRONG&gt; to n;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp; carry = &lt;STRONG&gt;0&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp; digits = ceil(logfact(i)/log(&lt;STRONG&gt;10&lt;/STRONG&gt;)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp; do j = &lt;STRONG&gt;1&lt;/STRONG&gt; to digits ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g = i*f&lt;J&gt; + carry;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; digit = mod(g, &lt;STRONG&gt;10&lt;/STRONG&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f&lt;J&gt; = digit;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; carry = (g - digit)/&lt;STRONG&gt;10&lt;/STRONG&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt; return( f[,ncol(f):&lt;STRONG&gt;1&lt;/STRONG&gt;] );&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;finish;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;i={&lt;STRONG&gt;10&lt;/STRONG&gt; &lt;STRONG&gt;9&lt;/STRONG&gt; &lt;STRONG&gt;8&lt;/STRONG&gt; &lt;STRONG&gt;7&lt;/STRONG&gt; &lt;STRONG&gt;6&lt;/STRONG&gt; &lt;STRONG&gt;5&lt;/STRONG&gt; &lt;STRONG&gt;4&lt;/STRONG&gt; &lt;STRONG&gt;3&lt;/STRONG&gt; &lt;STRONG&gt;2&lt;/STRONG&gt; &lt;STRONG&gt;1&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;do j=&lt;STRONG&gt;1&lt;/STRONG&gt; to &lt;STRONG&gt;11&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;m=&lt;STRONG&gt;100&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;n=&lt;STRONG&gt;5&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;n=int(n);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;alpha=((m*(n-&lt;STRONG&gt;1&lt;/STRONG&gt;))-&lt;STRONG&gt;2&lt;/STRONG&gt;)/&lt;STRONG&gt;2&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;f = BigFactorial(&lt;STRONG&gt;10&lt;/STRONG&gt;+alpha);&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;Fact10alpha = rowcat(char(f,&lt;STRONG&gt;1&lt;/STRONG&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;f = BigFactorial(alpha+i&lt;J&gt;); &lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;Factalphaij = rowcat(char(f,&lt;STRONG&gt;1&lt;/STRONG&gt;)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;xi= (Fact10alpha*((-&lt;STRONG&gt;1&lt;/STRONG&gt;)**i&lt;J&gt;))/(fact(&lt;STRONG&gt;10&lt;/STRONG&gt;-i&lt;J&gt;)*Factalphaij*fact(i&lt;J&gt;));&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;xivector= xivector//xi;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;r = polyroot(xivector);&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;print alpha;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;print xivector[format=E32.14];&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;print r;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #365f91; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4f81bd;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 17:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169753#M264139</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-26T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169754#M264140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of expressing the value in scientific notation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 17:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169754#M264140</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-05-26T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169755#M264141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;When I run the program with this large number the program stop for the following error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #365f91; font-family: 'Courier New';"&gt;xi= (Fact10alpha*((-1)**i&lt;J&gt;))/(fact(10-i&lt;J&gt;)*Factalphaij*fact(i&lt;J&gt;));&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #365f91; font-family: 'Courier New';"&gt; xivector= xivector//xi;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #365f91; font-family: 'Courier New';"&gt;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;ERROR: (execution) Character argument should be numeric.&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt; operation : * at line 1692 column 17&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt; operands&amp;nbsp; : FACT10ALPHA, _TEM1003&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;FACT10ALPHA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (character, size 396)&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;503922001391602684687020401158801681226618598986519140773108273914973750154286714989758900055784161689&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;372691983704250134636955362807053185957405838412622577093209034636594244815143495425900762221723313516&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;671432465293726789169859417220321898386948547503076332140696583782648654162369257874235628670913098927&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;309583611016480222975543676334472010137600000000000000000000000000000000000000000000000000&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;_TEM1003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (numeric)&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG style="color: #c0504d; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New';"&gt; statement : ASSIGN at line 1692 column 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;but when I used the scientific notation this error doesn't appear.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169755#M264141</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-27T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169756#M264142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Scientific Notation" is just a format through which a SAS number (with all its 8-byte limitations) is displayed.&lt;/P&gt;&lt;P&gt;fact10alpha is not numeric, but a character variable that CANNOT be used as a number value in a computation, because with such a big string the automatic conversion (that SAS usually tries) fails.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 12:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169756#M264142</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-27T12:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169757#M264143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I convert the fact10alpha to a numeric to use it in the computations???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 12:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169757#M264143</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-27T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169758#M264144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the core of the problem: you cannot. SAS simply can not deal with numbers that fall outside of what can be handled with 8 bytes real.&lt;/P&gt;&lt;P&gt;Get the right tool for this kind of math and do it there. SAS is not the right tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 12:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169758#M264144</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-27T12:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169759#M264145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To deal with numbers of the order of 1e395 as an integer without loss of precision you would need a machine representation of around 165 bytes (against SAS use of floating point 8 bytes - which does not allow even 2**64 precision).&amp;nbsp; Using scientific notation does not change this requirement.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example using Proc Groovy demonstrates there are other tools (Java, in this instance - I showed my age in mentioning Fortran) which can accommodate very large numbers. You should use those tools.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any attempt to carry out numerical analysis on this scale in SAS is an exercise in futility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 12:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169759#M264145</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-05-27T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169760#M264146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, the question is "what are you trying to accomplish."&amp;nbsp; It looks like you are trying to fnd the roots of a tenth-degree polynomial with coefficients given by some alternating expression that involves ... binomial coefficients?&amp;nbsp; Looks like there is an "n choose k" term, or in your notation, "alpha choose i," but there are other terms as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is the polynomial, and why are you trying to find its roots?&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I wouldn't trust the result of the POLYROOT function on a polynomial with such huge coefficients. How do I know that the coefficients are huge?&amp;nbsp; Well, you can compute the coefficients without computing factorials of the large numbers. Note that&lt;/P&gt;&lt;P&gt;(alpha + p)! = alpha! * (alpha+1) * (alpha+2) * ... * (alpha + p)&lt;/P&gt;&lt;P&gt;so that the term (alpha + 10)! in the numerator cancels most of the terms of (alpha + i)! in the denominator.&lt;/P&gt;&lt;P&gt;You are left with a numerator that is the simple product: (alpha + i + 1) * ... * (alpha + 10).&lt;/P&gt;&lt;P&gt;The denominator simplifies to (10 + 1)! * i!&lt;/P&gt;&lt;P&gt;From these computations, the coefficients of the i_th term of the polynomial are roughly of the order +/-alpha##(10-i).&amp;nbsp; You can use the PROD function to compute the coefficients exactly, but again I emphasize that this is NOT something I recommend. Instead, I recommend understanding the purpose of finding the roots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169760#M264146</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-05-27T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169761#M264147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;I try to find the roots to calculate the nodes and weights of the Gauss-Laguerre integration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Do you mean that &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;xi= (Fact10alpha*((-1)**i&lt;J&gt;))/(fact(10-i&lt;J&gt;)*Factalphaij*fact(i&lt;J&gt;));&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;xi=numerator/ denominator&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;numerator= (alpha+i+1)* (alpha+1)* (alpha+2)* (alpha+3)* (alpha+4)* (alpha+5)* (alpha+6)* (alpha+7)* (alpha+8)* (alpha+9)* (alpha+10)* ((-&lt;STRONG style="font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;)**i&lt;J&gt;)&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #365f91; background: white;"&gt;denominator=(fact(&lt;STRONG style="font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;-i&lt;J&gt;)*fact(10+1)*fact(i&lt;J&gt;))&lt;/J&gt;&lt;/J&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 18:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-Notation/m-p/169761#M264147</guid>
      <dc:creator>RaniaMamdouh</dc:creator>
      <dc:date>2014-05-27T18:07:54Z</dc:date>
    </item>
  </channel>
</rss>

