<?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: fmod() in PHP is the worst !&#8221;#¤%&amp;/()= function ever!</title>
	<atom:link href="http://www.divideandconquer.se/2009/11/10/fmod-in-php-is-the-worst-function-ever/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.divideandconquer.se/2009/11/10/fmod-in-php-is-the-worst-function-ever/</link>
	<description>David's Software Development Blog</description>
	<lastBuildDate>Thu, 15 Sep 2011 10:38:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: David</title>
		<link>http://www.divideandconquer.se/2009/11/10/fmod-in-php-is-the-worst-function-ever/comment-page-1/#comment-547</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=580#comment-547</guid>
		<description>@Carl

Indeed:

$ php -d precision=40 -r &#039;echo fmod(36,7.2);&#039;
7.199999999999999289457264239899814128876

So, fmod() actually thinks that 36 is 4*7.2 + the above?</description>
		<content:encoded><![CDATA[<p>@Carl</p>
<p>Indeed:</p>
<p>$ php -d precision=40 -r &#8216;echo fmod(36,7.2);&#8217;<br />
7.199999999999999289457264239899814128876</p>
<p>So, fmod() actually thinks that 36 is 4*7.2 + the above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Ådahl</title>
		<link>http://www.divideandconquer.se/2009/11/10/fmod-in-php-is-the-worst-function-ever/comment-page-1/#comment-545</link>
		<dc:creator>Carl Ådahl</dc:creator>
		<pubDate>Wed, 11 Nov 2009 14:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.divideandconquer.se/?p=580#comment-545</guid>
		<description>Could it be possible that &#039;echo&#039; is truncating the value? E.g. printing 7.199999999999 as 7.2.

Then you have the problem of exact representability of course. Did you try this in C/C#/Java?</description>
		<content:encoded><![CDATA[<p>Could it be possible that &#8216;echo&#8217; is truncating the value? E.g. printing 7.199999999999 as 7.2.</p>
<p>Then you have the problem of exact representability of course. Did you try this in C/C#/Java?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

