<?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: w.d  foramt decimal in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953077#M372431</link>
    <description>Those results are to be expected.  Why the author might want those results is anybody guess.  But they are expected.&lt;BR /&gt;Let's examine what the 4.1 informat means.  First, it means "read 4 characters."  Second, inspect those four characters to see if they contain a decimal point.  If a decimal point is found, use it.  Third, 4.1 means if no decimal point appears in the 4 characters, assume 1 character belongs after the decimal point.</description>
    <pubDate>Tue, 10 Dec 2024 07:09:43 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2024-12-10T07:09:43Z</dc:date>
    <item>
      <title>w.d  foramt decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953070#M372428</link>
      <description>&lt;P&gt;Why set format 4.1 in the program, when input 8, the result is 0.8, input 8.0, the result is 8. I'm a little confused by this logic, please help me~&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cheche_0-1733808606825.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102860i804D33574D1C22C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cheche_0-1733808606825.png" alt="cheche_0-1733808606825.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 05:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953070#M372428</guid>
      <dc:creator>cheche</dc:creator>
      <dc:date>2024-12-10T05:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: w.d  foramt decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953076#M372430</link>
      <description>&lt;P&gt;Your &lt;FONT face="courier new,courier"&gt;4.1&lt;/FONT&gt; in an INPUT statement is an &lt;STRONG&gt;IN&lt;/STRONG&gt;format, not a format. It tells SAS how to read the numbers. If you want to tell SAS how to display (or write to an output) the numbers, then you need a format. This allows numbers to read in a certain way, and displayed (or written to an output) differently, if so desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
    input source 4.1;
    format source 4.1;
    cards;
...
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 07:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953076#M372430</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-10T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: w.d  foramt decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953077#M372431</link>
      <description>Those results are to be expected.  Why the author might want those results is anybody guess.  But they are expected.&lt;BR /&gt;Let's examine what the 4.1 informat means.  First, it means "read 4 characters."  Second, inspect those four characters to see if they contain a decimal point.  If a decimal point is found, use it.  Third, 4.1 means if no decimal point appears in the 4 characters, assume 1 character belongs after the decimal point.</description>
      <pubDate>Tue, 10 Dec 2024 07:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953077#M372431</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-12-10T07:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: w.d  foramt decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953082#M372434</link>
      <description>&lt;P&gt;I got it. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 08:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953082#M372434</guid>
      <dc:creator>cheche</dc:creator>
      <dc:date>2024-12-10T08:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: w.d  foramt decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953083#M372435</link>
      <description>thank you</description>
      <pubDate>Tue, 10 Dec 2024 08:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/w-d-foramt-decimal/m-p/953083#M372435</guid>
      <dc:creator>cheche</dc:creator>
      <dc:date>2024-12-10T08:03:26Z</dc:date>
    </item>
  </channel>
</rss>

