<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to avoid imprecise DECIMAL math in MySQL</title>
	<link>http://www.xaprb.com/blog/2006/03/08/decimal-math-in-mysql/</link>
	<description>Stay curious!</description>
	<pubDate>Fri, 29 Aug 2008 19:31:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Jason</title>
		<link>http://www.xaprb.com/blog/2006/03/08/decimal-math-in-mysql/#comment-10150</link>
		<author>Jason</author>
		<pubDate>Fri, 01 Jun 2007 06:26:10 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/03/08/decimal-math-in-mysql/#comment-10150</guid>
		<description>Thanks for all that info, it was good to find out why the problem is happening rather than just that it cant work...
I seem to have worked out the issue I was having with float types with the following statement - hope it helps anyone else. Cheers:

SELECT ID, Round(Sum(Total),2) As calcTotal FROM table 
GROUP BY ID 
HAVING Round(Sum(Total),2) &#62; 0
ORDER by calcTotal DESC</description>
		<content:encoded><![CDATA[<p>Thanks for all that info, it was good to find out why the problem is happening rather than just that it cant work&#8230;<br />
I seem to have worked out the issue I was having with float types with the following statement - hope it helps anyone else. Cheers:</p>
<p>SELECT ID, Round(Sum(Total),2) As calcTotal FROM table<br />
GROUP BY ID<br />
HAVING Round(Sum(Total),2) &gt; 0<br />
ORDER by calcTotal DESC</p>
]]></content:encoded>
	</item>
</channel>
</rss>
