<?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: Mysql rounding for currency format</title>
	<atom:link href="http://www.imranulhoque.com/mysql/mysql-rounding-for-currency-format/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imranulhoque.com/mysql/mysql-rounding-for-currency-format/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 12:09:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul Carpenter</title>
		<link>http://www.imranulhoque.com/mysql/mysql-rounding-for-currency-format/comment-page-1/#comment-5637</link>
		<dc:creator>Paul Carpenter</dc:creator>
		<pubDate>Tue, 07 Jun 2011 11:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=138#comment-5637</guid>
		<description>Anyone using floats to store monetary values that are then used in calculations to create totals and taxes, is asking for trouble.

This is the difference between resolution and accuracy. The classic examples with floats is partials equivalent no powers of 2 - 1/3, 1/5, 1/6, 1/7........

I have seen the results in many places like dailywtf and pictures of parking charge machines giving totals of $4.18e96 (yes x 10 to the power 96) to never use any float format for anything monetary in normal usage.

The only time floats are useable is for working out national debt, where the second by second differences between actual and calculated vary so much any figure is a best estimate.</description>
		<content:encoded><![CDATA[<p>Anyone using floats to store monetary values that are then used in calculations to create totals and taxes, is asking for trouble.</p>
<p>This is the difference between resolution and accuracy. The classic examples with floats is partials equivalent no powers of 2 &#8211; 1/3, 1/5, 1/6, 1/7&#8230;&#8230;..</p>
<p>I have seen the results in many places like dailywtf and pictures of parking charge machines giving totals of $4.18e96 (yes x 10 to the power 96) to never use any float format for anything monetary in normal usage.</p>
<p>The only time floats are useable is for working out national debt, where the second by second differences between actual and calculated vary so much any figure is a best estimate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imran</title>
		<link>http://www.imranulhoque.com/mysql/mysql-rounding-for-currency-format/comment-page-1/#comment-1613</link>
		<dc:creator>imran</dc:creator>
		<pubDate>Thu, 12 Nov 2009 08:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=138#comment-1613</guid>
		<description>you are kind of correct. Thanks :-)</description>
		<content:encoded><![CDATA[<p>you are kind of correct. Thanks <img src='http://www.imranulhoque.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.imranulhoque.com/mysql/mysql-rounding-for-currency-format/comment-page-1/#comment-1593</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Tue, 10 Nov 2009 12:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=138#comment-1593</guid>
		<description>... except, of course, that nobody would ever store monetary values as a float, because that would be wrong.</description>
		<content:encoded><![CDATA[<p>&#8230; except, of course, that nobody would ever store monetary values as a float, because that would be wrong.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

