<?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: Formatting bytes with significant figures in PHP</title>
	<atom:link href="http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/</link>
	<description></description>
	<lastBuildDate>Sat, 03 Jul 2010 21:06:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jay Straw</title>
		<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/comment-page-1/#comment-687</link>
		<dc:creator>Jay Straw</dc:creator>
		<pubDate>Thu, 26 Nov 2009 15:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=153#comment-687</guid>
		<description>I just used your function to format network tx/rx rates in a PHP script running on my Zaurus sl-5500. It writes that and other server info to /dev/ttyS0, where my microcontroller listens and interfaces with a 16x2 character LCD screen.

THANK YOU! You could imagine attempting this gives me plenty of headaches already! Wonderful code.</description>
		<content:encoded><![CDATA[<p>I just used your function to format network tx/rx rates in a PHP script running on my Zaurus sl-5500. It writes that and other server info to /dev/ttyS0, where my microcontroller listens and interfaces with a 16&#215;2 character LCD screen.</p>
<p>THANK YOU! You could imagine attempting this gives me plenty of headaches already! Wonderful code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/comment-page-1/#comment-679</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 24 Oct 2009 20:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=153#comment-679</guid>
		<description>Hi Tamlyn

One more comment based on using your excellent function. It returns a &quot;division-by-zero&quot; error when $value == 0 (because log (0) is mathematically undefined). To avoid the error at this mathematical discontinuity, I simply inserted this line of code at the beginning of the function:

if ($value == 0) return 0;

Thanks again for a tremendous contribution to the PHP community!

Paul</description>
		<content:encoded><![CDATA[<p>Hi Tamlyn</p>
<p>One more comment based on using your excellent function. It returns a &#8220;division-by-zero&#8221; error when $value == 0 (because log (0) is mathematically undefined). To avoid the error at this mathematical discontinuity, I simply inserted this line of code at the beginning of the function:</p>
<p>if ($value == 0) return 0;</p>
<p>Thanks again for a tremendous contribution to the PHP community!</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/comment-page-1/#comment-668</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 13 Sep 2009 18:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=153#comment-668</guid>
		<description>Thanks a lot, Tamlyn, for sharing your terrific significant figures function. It&#039;s really an omission from PHP and should be a native PHP function. You&#039;ve saved people like me a lot of time and brain cycles from having to try to reinvent your wheel here!</description>
		<content:encoded><![CDATA[<p>Thanks a lot, Tamlyn, for sharing your terrific significant figures function. It&#8217;s really an omission from PHP and should be a native PHP function. You&#8217;ve saved people like me a lot of time and brain cycles from having to try to reinvent your wheel here!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/comment-page-1/#comment-489</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 01 Jun 2009 11:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=153#comment-489</guid>
		<description>Cheers dude, just saved me some time.</description>
		<content:encoded><![CDATA[<p>Cheers dude, just saved me some time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamlyn</title>
		<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/comment-page-1/#comment-471</link>
		<dc:creator>Tamlyn</dc:creator>
		<pubDate>Tue, 05 May 2009 22:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=153#comment-471</guid>
		<description>Good call. Updated. Thanks!</description>
		<content:encoded><![CDATA[<p>Good call. Updated. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m4gus</title>
		<link>http://tamlyn.org/2008/12/formatting-bytes-with-significant-figures-in-php/comment-page-1/#comment-470</link>
		<dc:creator>m4gus</dc:creator>
		<pubDate>Tue, 05 May 2009 21:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=153#comment-470</guid>
		<description>Just a note... to make your sigFig function work with negative numbers you should change the $exponent variable to:
$exponent = floor(log10(abs($value))+1);
Other then that a nice solution to this problem, thanks!</description>
		<content:encoded><![CDATA[<p>Just a note&#8230; to make your sigFig function work with negative numbers you should change the $exponent variable to:<br />
$exponent = floor(log10(abs($value))+1);<br />
Other then that a nice solution to this problem, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
