<?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: Different numeric formats in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375353#M11389</link>
    <description>&lt;P&gt;Use the BEST informat, note that this is the default SAS behaviour as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check;
informat myNum best12.;
format myNum best12.;
input myNum;&lt;BR /&gt;cards;
2
4
4.32
2.3
1.0
3
;
run;

proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Jul 2017 15:08:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-12T15:08:17Z</dc:date>
    <item>
      <title>Different numeric formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375349#M11388</link>
      <description>&lt;P&gt;I'm importing a csv file with a number which is sometimes without decimals and sometimes with them like( 20 or 5,43) how can i store them in one variable with right values. If i use comma. the number without decimals gets wrong value and so on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375349#M11388</guid>
      <dc:creator>Thylacine</dc:creator>
      <dc:date>2017-07-12T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Different numeric formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375353#M11389</link>
      <description>&lt;P&gt;Use the BEST informat, note that this is the default SAS behaviour as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check;
informat myNum best12.;
format myNum best12.;
input myNum;&lt;BR /&gt;cards;
2
4
4.32
2.3
1.0
3
;
run;

proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375353#M11389</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-12T15:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different numeric formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375354#M11390</link>
      <description>&lt;P&gt;If your example is indicative of what your data really look like, sounds like you should be using the commax informat rather than the comma format. That will let you read numbers like 5,43 as 5.43&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375354#M11390</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-07-12T15:10:32Z</dc:date>
    </item>
    <item>
      <title>Combining numeric formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375367#M11394</link>
      <description>&lt;P&gt;I'm importing a csv file with a number which is sometimes without decimals and sometimes with them like( 20 or 5,43) how can i store them in one variable with right values. If i use comma. the number without decimals gets wrong value and so on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375367#M11394</guid>
      <dc:creator>Thylacine</dc:creator>
      <dc:date>2017-07-12T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Combining numeric formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375368#M11395</link>
      <description>&lt;P&gt;You have a CSV file and sometimes the decimal is also a comma?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show us a portion of the CSV file that illustrates the problem so we can get some idea of what the data looks like?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375368#M11395</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-12T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Combining numeric formats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375374#M11396</link>
      <description>&lt;P&gt;Please note that I've merged these two threads as the topic is identical.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Different-numeric-formats/m-p/375374#M11396</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-12T15:27:04Z</dc:date>
    </item>
  </channel>
</rss>

