<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; roudn</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/roudn/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Round Off Decimal or Convert to Decimal Point</title>
		<link>http://newsourcemedia.com/blog/php-round-off-decimal-or-convert-to-decimal-point/</link>
		<comments>http://newsourcemedia.com/blog/php-round-off-decimal-or-convert-to-decimal-point/#comments</comments>
		<pubDate>Sun, 11 Jul 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math and Numbers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[decimal]]></category>
		<category><![CDATA[flash math]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[roudn]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/07/10/php-round-off-decimal-or-convert-to-decimal-point/</guid>
		<description><![CDATA[Round a number up or down or Round off a floating decimal point number using PHP's functions round(). Or convert a digit to a decimal point. Greate for shopping carts or time sheet programs. Round Off Decimal Round a number &#8230; <a href="http://newsourcemedia.com/blog/php-round-off-decimal-or-convert-to-decimal-point/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Round a number up or down or Round off a floating decimal point number using PHP's functions round(). Or convert a digit to a decimal point. Greate for shopping carts or time sheet programs.
<span id="more-194"></span>
<strong>Round Off Decimal</strong>

Round a number up or down or Round off a floating decimal point number using PHP's functions round().

Example. round();
<span style="color: #339900;"> echo round(3.4); // 3
echo round(3.5); // 4
echo round(3.6); // 4
echo round(3.6, 0); // 4
echo round(1.95583, 2); // 1.96
echo round(1241757, -3); // 1242000
echo round(5.045, 2); // 5.05
echo round(5.055, 2); // 5.06
?&gt;</span>

<strong>Convert to Decimal Point</strong>

Example. number_format();
<span style="color: #339900;"> $number = "28";
$number = number_format($number, 2);
echo $number; // equals "28.00"
?&gt;</span>

For a good book on PHP, check out <a href="http://www.amazon.com/exec/obidos/ASIN/1861003730/newsourcemedi-20" target="_blank">Beginning PHP4</a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-round-off-decimal-or-convert-to-decimal-point/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
