<?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: Question with w.d format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103125#M28896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the same reasoning, the results of your original test should have been 0.0001, not 0.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "4" in "9.4" (or in "5.4") is actually tricky.&amp;nbsp; It means, "Inspect the incoming string to see if it contains a decimal point.&amp;nbsp; If it does, use it.&amp;nbsp; But if there is no existing decimal point, assume that the last 4 digits read should fall after the decimal point."&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>Tue, 11 Jun 2013 18:03:39 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2013-06-11T18:03:39Z</dc:date>
    <item>
      <title>Question with w.d format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103123#M28894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to read in the '000010000' string to a numeric value of 1.0 (5 digit number and 4 decimals) but the syntax below would return the value of 0.1 instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value=Input('000010000', 5.4);&lt;/P&gt;&lt;P&gt;Put Value=;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;Value=0.1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know how to convert the value properly?&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103123#M28894</guid>
      <dc:creator>dyang</dc:creator>
      <dc:date>2013-06-11T17:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Question with w.d format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103124#M28895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the width needs to be the length of the string otherwise you lose the needed zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Value=Input('000012000', 9.4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Put Value=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should get 1.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103124#M28895</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-06-11T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question with w.d format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103125#M28896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the same reasoning, the results of your original test should have been 0.0001, not 0.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "4" in "9.4" (or in "5.4") is actually tricky.&amp;nbsp; It means, "Inspect the incoming string to see if it contains a decimal point.&amp;nbsp; If it does, use it.&amp;nbsp; But if there is no existing decimal point, assume that the last 4 digits read should fall after the decimal point."&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>Tue, 11 Jun 2013 18:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103125#M28896</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-06-11T18:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question with w.d format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103126#M28897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! the issue has been resolved. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 18:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Question-with-w-d-format/m-p/103126#M28897</guid>
      <dc:creator>dyang</dc:creator>
      <dc:date>2013-06-11T18:09:15Z</dc:date>
    </item>
  </channel>
</rss>

