<?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 Converting character stored in scientific notation?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/117432#M259455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am hoping there is an easy solution to this that I'm overlooking, but here is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a CHARACTER value stored as '8.8242e+13'&lt;/P&gt;&lt;P&gt;I would like to convert this to a character value stored as '88242000000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 14:40:48 GMT</pubDate>
    <dc:creator>hbergen</dc:creator>
    <dc:date>2012-07-25T14:40:48Z</dc:date>
    <item>
      <title>Converting character stored in scientific notation??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/117432#M259455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am hoping there is an easy solution to this that I'm overlooking, but here is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a CHARACTER value stored as '8.8242e+13'&lt;/P&gt;&lt;P&gt;I would like to convert this to a character value stored as '88242000000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/117432#M259455</guid>
      <dc:creator>hbergen</dc:creator>
      <dc:date>2012-07-25T14:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character stored in scientific notation??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/117433#M259456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The conversions aren't difficult, although you may need to consider a couple of questions.&amp;nbsp; How many characters should be used to store the final character variable?&amp;nbsp; Should the results be left-justified or right-justified?&amp;nbsp; Here's one approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_variable = put( input(old_variable,10.), best14.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 15:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/117433#M259456</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-07-25T15:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character stored in scientific notation??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/287943#M259457</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a similar question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable whose values are numbers. Some of the values are listed in scientific notation, the majority&amp;nbsp;are simply strings of numbers. I want the variable to be numeric and w/o the scientific notation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I read-in the data using a DATA step, and apply a character informat ($20.), the numbers no longer have the scientific notation. Great, except when I convert the character variable to numeric, the scientific notation returns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;numeric_Part_FB_ID = INPUT (Part_FB_ID, BEST32.);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I read-in the data and apply a numeric informat (BEST32.), the values are listed in scientific notation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&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>Thu, 28 Jul 2016 20:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-character-stored-in-scientific-notation/m-p/287943#M259457</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-07-28T20:05:17Z</dc:date>
    </item>
  </channel>
</rss>

