<?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: convert the integer into decimal. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64164#M13980</link>
    <description>More specific to the point, review the use of the SAS FORMAT and/or ATTRIB statement which is used to associate an "output display format" with a SAS variable.&lt;BR /&gt;
&lt;BR /&gt;
There are both SAS-system standard formats documented in the SAS Language Dictionary and also there is the SAS PROC FORMAT (procedure) where you can develop / define your own format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
display numeric variable integer decimal site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
format documentation site:sas.com</description>
    <pubDate>Tue, 10 May 2011 16:09:05 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2011-05-10T16:09:05Z</dc:date>
    <item>
      <title>convert the integer into decimal.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64160#M13976</link>
      <description>Dear All,&lt;BR /&gt;
&lt;BR /&gt;
Please help me out the following issue.&lt;BR /&gt;
Input: &lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
input a ;&lt;BR /&gt;
datalines;&lt;BR /&gt;
9&lt;BR /&gt;
34&lt;BR /&gt;
45&lt;BR /&gt;
64&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
output;&lt;BR /&gt;
&lt;BR /&gt;
9.00&lt;BR /&gt;
34.0&lt;BR /&gt;
45.0&lt;BR /&gt;
64.0&lt;BR /&gt;
&lt;BR /&gt;
I can convert the data using put function to character (ex: put(a,8.1);&lt;BR /&gt;
or i can display the value with format 8.1;&lt;BR /&gt;
&lt;BR /&gt;
I just want to store the value with decimal value Zero to the integers ( i.e 34 to 34.0)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could you please suggest me is ther any other way to solve this issue.&lt;BR /&gt;
&lt;BR /&gt;
Thanks In Advance.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please help me out</description>
      <pubDate>Tue, 10 May 2011 11:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64160#M13976</guid>
      <dc:creator>Uli</dc:creator>
      <dc:date>2011-05-10T11:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: convert the integer into decimal.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64161#M13977</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
SAS knows only 2 data types: character or numeric. There is no integer data type.&lt;BR /&gt;
&lt;BR /&gt;
But you can always store a format like 8.1 permanent for a variable - so it will show 34.0 by "default".&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 10 May 2011 11:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64161#M13977</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-05-10T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: convert the integer into decimal.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64162#M13978</link>
      <description>Dear Patrick.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your response.&lt;BR /&gt;
&lt;BR /&gt;
How can i  convert  numeric value 34 to 34.0 and stores into numeric variable.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks IN Advance.</description>
      <pubDate>Tue, 10 May 2011 12:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64162#M13978</guid>
      <dc:creator>Uli</dc:creator>
      <dc:date>2011-05-10T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: convert the integer into decimal.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64163#M13979</link>
      <description>From SAS' perspective, there is no difference between 34 and 34.0 except for the display format.  The underlying data are the same.&lt;BR /&gt;
&lt;BR /&gt;
If you want to change the format, then you can do so but it makes zero difference with the actual data.</description>
      <pubDate>Tue, 10 May 2011 14:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64163#M13979</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-05-10T14:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: convert the integer into decimal.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64164#M13980</link>
      <description>More specific to the point, review the use of the SAS FORMAT and/or ATTRIB statement which is used to associate an "output display format" with a SAS variable.&lt;BR /&gt;
&lt;BR /&gt;
There are both SAS-system standard formats documented in the SAS Language Dictionary and also there is the SAS PROC FORMAT (procedure) where you can develop / define your own format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
display numeric variable integer decimal site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
format documentation site:sas.com</description>
      <pubDate>Tue, 10 May 2011 16:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-integer-into-decimal/m-p/64164#M13980</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-05-10T16:09:05Z</dc:date>
    </item>
  </channel>
</rss>

