<?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: negative exponents in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737121#M5464</link>
    <description>&lt;P&gt;Your question is about how to do this in PROC IML?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you want to see this formatted output? Please be very detailed.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 21:51:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-04-26T21:51:27Z</dc:date>
    <item>
      <title>negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737120#M5463</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to ask this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to format the output in case of very very small numbers without rounding them&lt;/P&gt;&lt;P&gt;For example 0.0000006&amp;nbsp; can I have SAS to write the output as 6 e^-6 or anything similar?&lt;/P&gt;&lt;P&gt;I know that there is round(x,0.0001) but I want to keep the number as it is just the output to be in short hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 21:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737120#M5463</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-04-26T21:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737121#M5464</link>
      <description>&lt;P&gt;Your question is about how to do this in PROC IML?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you want to see this formatted output? Please be very detailed.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 21:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737121#M5464</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-26T21:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737123#M5465</link>
      <description>&lt;P&gt;Formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exponential formats are probably what you want...but where are you planning to use this in IML?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not 100% sure this can be used in whatever step you're looking for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/26900"&gt;@Salah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure how to ask this question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to format the output in case of very very small numbers without rounding them&lt;/P&gt;
&lt;P&gt;For example 0.0000006&amp;nbsp; can I have SAS to write the output as 6 e^-6 or anything similar?&lt;/P&gt;
&lt;P&gt;I know that there is round(x,0.0001) but I want to keep the number as it is just the output to be in short hand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 21:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737123#M5465</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-26T21:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737125#M5466</link>
      <description>&lt;P&gt;The format is amazingly enough the Ew. format, for exponential. For example e10. preserves 10 significant digits&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data example;
   x= 0.0000002345;
   put x= e10.;
run;&lt;/PRE&gt;
&lt;P&gt;with a result of&lt;/P&gt;
&lt;PRE&gt;x=2.345E-07
&lt;/PRE&gt;
&lt;P&gt;The format can be used to display 32 characters but the documentation displays up to 14 significant digits.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 22:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737125#M5466</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-26T22:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737139#M5467</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc iml;
power = -10:-3;
x= 10**power;
print x[format=E10.];
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Apr 2021 00:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737139#M5467</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-04-27T00:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737240#M5468</link>
      <description>Rick,&lt;BR /&gt;Shouldn't be &lt;BR /&gt;x= 10##power;&lt;BR /&gt;??&lt;BR /&gt;** in IML is matrix multiply operator ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;a={1 2,&lt;BR /&gt;   4 2};&lt;BR /&gt;x= a##2;&lt;BR /&gt;y= a**2;&lt;BR /&gt;print x / y;&lt;BR /&gt;quit;</description>
      <pubDate>Tue, 27 Apr 2021 12:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737240#M5468</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-04-27T12:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737297#M5469</link>
      <description>&lt;P&gt;When the base is a scalar, the ** and ## operators are equivalent. I used 10**power since most DATA step programmers are more familiar with the ** operator for raising a scalar to a power.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, sure, you can use ## if you prefer.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 15:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737297#M5469</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-04-27T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: negative exponents</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737405#M5470</link>
      <description>&lt;P&gt;Thank you for the help. But I am not sure this works in SAS/IML!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 19:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/negative-exponents/m-p/737405#M5470</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-04-27T19:54:11Z</dc:date>
    </item>
  </channel>
</rss>

