<?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: Funny differences between Mysql and Postgresql</title>
	<atom:link href="http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/</link>
	<description>Daniel Lemire's blog is about life in academia, research in Computer Science, wondering how we can reconcile fast databases and algorithms with the informal and asemantic nature of the world around us. It is broadcasted from Montreal (Canada).</description>
	<pubDate>Tue, 06 Jan 2009 15:05:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joseph Scott</title>
		<link>http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/comment-page-1/#comment-390</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Wed, 10 Nov 2004 16:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/#comment-390</guid>
		<description>As to why MySQL rounds the way it does, that was directly from the MySQL docs.  I didn't really but it either, but it looks like that is their "official" explanation.</description>
		<content:encoded><![CDATA[<p>As to why MySQL rounds the way it does, that was directly from the MySQL docs.  I didn&#8217;t really but it either, but it looks like that is their &#8220;official&#8221; explanation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/comment-page-1/#comment-347</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 09 Nov 2004 17:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/#comment-347</guid>
		<description>Hmm.  Should have tried it BEFORE posting the last comment so as to avoid having to post another.  It looks to me like MySQL follows a similar rounding rule, but with even/odd reversed:  if the preceding digit is odd, round up; otherwise round down.  So, for example, 1.5 and 2.5 both round to 2.</description>
		<content:encoded><![CDATA[<p>Hmm.  Should have tried it BEFORE posting the last comment so as to avoid having to post another.  It looks to me like MySQL follows a similar rounding rule, but with even/odd reversed:  if the preceding digit is odd, round up; otherwise round down.  So, for example, 1.5 and 2.5 both round to 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/comment-page-1/#comment-346</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 09 Nov 2004 17:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/#comment-346</guid>
		<description>Regarding the rounding of 0.5, I was also taught that it should round to 1.  But what about 1.5?  I would guess that Daniel was taught that it rounds to 2; I was taught that it also rounds to 1.  I learned this in lab courses in undergraduate physics.  The general rule was (is) that if the digit to the immediate left of the positition being rounded is even, round up; otherwise round down.  The rationale is that otherwise, on average, you will end up
rounding up more often than down, skewing results slightly.</description>
		<content:encoded><![CDATA[<p>Regarding the rounding of 0.5, I was also taught that it should round to 1.  But what about 1.5?  I would guess that Daniel was taught that it rounds to 2; I was taught that it also rounds to 1.  I learned this in lab courses in undergraduate physics.  The general rule was (is) that if the digit to the immediate left of the positition being rounded is even, round up; otherwise round down.  The rationale is that otherwise, on average, you will end up<br />
rounding up more often than down, skewing results slightly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Scott's Blog</title>
		<link>http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/comment-page-1/#comment-345</link>
		<dc:creator>Joseph Scott's Blog</dc:creator>
		<pubDate>Tue, 09 Nov 2004 02:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.daniel-lemire.com/blog/archives/2004/11/08/funny-differences-between-mysql-and-postgresql/#comment-345</guid>
		<description>&lt;strong&gt;MySQL's Funny Math&lt;/strong&gt;
Daniel Lemire came across some funny math in MySQL.  He ran 'select 11/5;' and had MySQL give him 2.20, where PostgreSQL gave him 2.  There is nothing wrong with MySQL's answer, but it might throw off most programmers who be likely to expect the kin...</description>
		<content:encoded><![CDATA[<p><strong>MySQL&#8217;s Funny Math</strong><br />
Daniel Lemire came across some funny math in MySQL.  He ran &#8217;select 11/5;&#8217; and had MySQL give him 2.20, where PostgreSQL gave him 2.  There is nothing wrong with MySQL&#8217;s answer, but it might throw off most programmers who be likely to expect the kin&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
