<?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 Format Billions as '$0.0 B' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-Billions-as-0-0-B/m-p/491433#M128871</link>
    <description>&lt;P&gt;Apologize for such a basic question but I cannot figure it out.&amp;nbsp; When I use the format below for numbers in the millions, it comes out as $n.n M, but a number in billions only comes out as $ n B, I would like to add the decimal place so that $1.5 billion would read as $1.5 B, not $1 B.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;   
	picture money (fuzz=0)
	-1000000000000000-&amp;lt;-1E12='0000 T' (prefix='-$' mult=1E-012)
	-1000000000000-&amp;lt;-1E09='0000 B' (prefix='-$' mult=1E-09) 
	-1000000000-&amp;lt;1E06='0000 M' (prefix='-$' mult=.000001)
	1E06-&amp;lt;1000000000='0000 M' (prefix='$' mult=.000001)
	1E09-&amp;lt;1000000000000='0000 B' (prefix='$' mult=1E-09)
	1E12-&amp;lt;1000000000000000='0000 T' (prefix='$' mult=1E-012);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Aug 2018 21:11:58 GMT</pubDate>
    <dc:creator>P5C768</dc:creator>
    <dc:date>2018-08-30T21:11:58Z</dc:date>
    <item>
      <title>Format Billions as '$0.0 B'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-Billions-as-0-0-B/m-p/491433#M128871</link>
      <description>&lt;P&gt;Apologize for such a basic question but I cannot figure it out.&amp;nbsp; When I use the format below for numbers in the millions, it comes out as $n.n M, but a number in billions only comes out as $ n B, I would like to add the decimal place so that $1.5 billion would read as $1.5 B, not $1 B.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;   
	picture money (fuzz=0)
	-1000000000000000-&amp;lt;-1E12='0000 T' (prefix='-$' mult=1E-012)
	-1000000000000-&amp;lt;-1E09='0000 B' (prefix='-$' mult=1E-09) 
	-1000000000-&amp;lt;1E06='0000 M' (prefix='-$' mult=.000001)
	1E06-&amp;lt;1000000000='0000 M' (prefix='$' mult=.000001)
	1E09-&amp;lt;1000000000000='0000 B' (prefix='$' mult=1E-09)
	1E12-&amp;lt;1000000000000000='0000 T' (prefix='$' mult=1E-012);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 21:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-Billions-as-0-0-B/m-p/491433#M128871</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2018-08-30T21:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format Billions as '$0.0 B'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-Billions-as-0-0-B/m-p/491439#M128876</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;   
 picture money (fuzz=0)
    -1E15 -&amp;lt; -1E12='0000 T' (prefix='-$' mult=1E-12)
    -1E12 -&amp;lt; -1E09='0000 B' (prefix='-$' mult=1E-09) 
    -1E09 -&amp;lt;  1E06='0000 M' (prefix='-$' mult=1E-06)
     1E06 -&amp;lt;  1E09='0000 M' (prefix= '$' mult=1E-06)
     1E09 -&amp;lt;  1E10='00.9 B' (prefix= '$' mult=1E-08)
     1E10 -&amp;lt;  1E12='0000 B' (prefix= '$' mult=1E-09)
     1E12 -&amp;lt;  1E15='0000 T' (prefix= '$' mult=1E-12);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;data t;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;A=3.3e07; put A A money.;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;A=3.3e08; put A A money.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;A=3.3e09; put A A money.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;A=3.3e10; put A A money.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;33000000 $33 M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;330000000 $330 M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3300000000 $3.3 B&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;33000000000 $33 B&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 21:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-Billions-as-0-0-B/m-p/491439#M128876</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-30T21:37:34Z</dc:date>
    </item>
  </channel>
</rss>

