<?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 Convert Exponential value to numeric value in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305698#M65232</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hi SAS Experts,&lt;BR /&gt;&lt;BR /&gt;I tried the following solution but the problem I discovered is that numbers who arent exponential are converted to something strange as well.&lt;BR /&gt;One of the problems might be that my source column/variable is actually of format "number" and the example creates values in format character.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/19678279/sas-programming-convert-exponential-value-to-numeric-value-in-sas" target="_blank"&gt;http://stackoverflow.com/questions/19678279/sas-programming-convert-exponential-value-to-numeric-value-in-sas&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;data test;  
  a='3.24456545e-3'; output;  
  a='3.22254e2'; output;  
  a='9.151451'; output;  
  a='0.151451'; output;
run;  

data erg;  
  set test;  
  b=input(a,32.16);  
run; &lt;/PRE&gt;&lt;P&gt;Are there other ways how to deal with exponentials that are of format "number" ?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 15:46:02 GMT</pubDate>
    <dc:creator>PhilipH</dc:creator>
    <dc:date>2016-10-19T15:46:02Z</dc:date>
    <item>
      <title>Convert Exponential value to numeric value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305698#M65232</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi SAS Experts,&lt;BR /&gt;&lt;BR /&gt;I tried the following solution but the problem I discovered is that numbers who arent exponential are converted to something strange as well.&lt;BR /&gt;One of the problems might be that my source column/variable is actually of format "number" and the example creates values in format character.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/19678279/sas-programming-convert-exponential-value-to-numeric-value-in-sas" target="_blank"&gt;http://stackoverflow.com/questions/19678279/sas-programming-convert-exponential-value-to-numeric-value-in-sas&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;data test;  
  a='3.24456545e-3'; output;  
  a='3.22254e2'; output;  
  a='9.151451'; output;  
  a='0.151451'; output;
run;  

data erg;  
  set test;  
  b=input(a,32.16);  
run; &lt;/PRE&gt;&lt;P&gt;Are there other ways how to deal with exponentials that are of format "number" ?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305698#M65232</guid>
      <dc:creator>PhilipH</dc:creator>
      <dc:date>2016-10-19T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Exponential value to numeric value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305704#M65233</link>
      <description>&lt;P&gt;&lt;EM&gt;Editor's Note: Thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; for providing examples of different informats that can be used to display the values without exponential notation. I have edited the response to&amp;nbsp; include them both here.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You don't mention what you may have read to text values but try something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data erg;  
  set test;  
  b=input(a,best32.);  
run; &lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data erg;  
  set test;  
  b=input(a,e32.);  
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 02:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305704#M65233</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-07T02:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Exponential value to numeric value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305711#M65235</link>
      <description>&lt;P&gt;Why do you say there is any issue at all?&amp;nbsp; What results do you see when you add this statement to the final DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put a= b=;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305711#M65235</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-19T17:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Exponential value to numeric value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305898#M65322</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;  
  a='3.24456545e-3'; output;  
  a='3.22254e2'; output;  
  a='9.151451'; output;  
  a='0.151451'; output;
run;  

data erg;  
  set test;  
  b=input(a,e32.);  
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/305898#M65322</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-20T10:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Exponential value to numeric value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/558021#M155664</link>
      <description>perfect</description>
      <pubDate>Sat, 11 May 2019 11:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-Exponential-value-to-numeric-value-in-SAS/m-p/558021#M155664</guid>
      <dc:creator>lopohobby</dc:creator>
      <dc:date>2019-05-11T11:02:46Z</dc:date>
    </item>
  </channel>
</rss>

