<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Number to text conversion</title>
	<atom:link href="http://www.codediesel.com/data/number-to-text-conversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codediesel.com/data/number-to-text-conversion/</link>
	<description>/* PHP &#38; MySQL Journal */</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:39:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: roy</title>
		<link>http://www.codediesel.com/data/number-to-text-conversion/comment-page-1/#comment-1386</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Thu, 03 Sep 2009 03:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=780#comment-1386</guid>
		<description>nice, thanx, but i suggest that would better if you delete the &quot;and &quot; in hundred

 // Three digit number
            case &#039;3&#039;:
                if ($int % 100 == 0) {
                    $text = self::$units[$int{0}] . &#039; hundred&#039;;
                } else {
                    $text = self::$units[$int{0}] . &#039; hundred and &#039; . self::GetText(substr($int, 1));
                }
                break;


example:

197533408989.89

result:

One hundred ninety-seven billion, 
five hundred thirty-three million, 
four hundred eight thousand, 
nine hundred eighty-nine and 89/100</description>
		<content:encoded><![CDATA[<p>nice, thanx, but i suggest that would better if you delete the &#8220;and &#8221; in hundred</p>
<p> // Three digit number<br />
            case &#8217;3&#8242;:<br />
                if ($int % 100 == 0) {<br />
                    $text = self::$units[$int{0}] . &#8216; hundred&#8217;;<br />
                } else {<br />
                    $text = self::$units[$int{0}] . &#8216; hundred and &#8216; . self::GetText(substr($int, 1));<br />
                }<br />
                break;</p>
<p>example:</p>
<p>197533408989.89</p>
<p>result:</p>
<p>One hundred ninety-seven billion,<br />
five hundred thirty-three million,<br />
four hundred eight thousand,<br />
nine hundred eighty-nine and 89/100</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Oak</title>
		<link>http://www.codediesel.com/data/number-to-text-conversion/comment-page-1/#comment-1209</link>
		<dc:creator>Shantanu Oak</dc:creator>
		<pubDate>Thu, 14 May 2009 04:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=780#comment-1209</guid>
		<description>&gt;&gt; One thing to note is that The billion/trillion etc suffixes are done using the American style

If you want British style, use Pear package called &quot;Numbers Words&quot;

http://pear.php.net/package/Numbers_Words</description>
		<content:encoded><![CDATA[<p>&gt;&gt; One thing to note is that The billion/trillion etc suffixes are done using the American style</p>
<p>If you want British style, use Pear package called &#8220;Numbers Words&#8221;</p>
<p><a href="http://pear.php.net/package/Numbers_Words" rel="nofollow">http://pear.php.net/package/Numbers_Words</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

