<?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: Rounding and int</title>
	<atom:link href="http://www.robbiebow.co.uk/blog/rounding-and-int/feed" rel="self" type="application/rss+xml" />
	<link>http://www.robbiebow.co.uk/blog/rounding-and-int</link>
	<description>Perl, MySQL, Money and Food</description>
	<lastBuildDate>Sun, 29 Aug 2010 07:38:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Robbie Bow</title>
		<link>http://www.robbiebow.co.uk/blog/rounding-and-int/comment-page-1#comment-15</link>
		<dc:creator>Robbie Bow</dc:creator>
		<pubDate>Fri, 21 Mar 2008 20:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.robbiebow.co.uk/wordpress/?p=78#comment-15</guid>
		<description>Storing in minor units is indeed optimal. Receiving data in minor units would be nice as well. Having all currencies adopt the sensible approach of the Japanese Yen which has no minor units at all would be the best approach, albeit not the cheapest.
Ta for the birthday wishes. I make good my threat to visit you sometime soon, mark my words.
</description>
		<content:encoded><![CDATA[<p>Storing in minor units is indeed optimal. Receiving data in minor units would be nice as well. Having all currencies adopt the sensible approach of the Japanese Yen which has no minor units at all would be the best approach, albeit not the cheapest.<br />
Ta for the birthday wishes. I make good my threat to visit you sometime soon, mark my words.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hukins</title>
		<link>http://www.robbiebow.co.uk/blog/rounding-and-int/comment-page-1#comment-14</link>
		<dc:creator>Tom Hukins</dc:creator>
		<pubDate>Mon, 17 Mar 2008 20:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.robbiebow.co.uk/wordpress/?p=78#comment-14</guid>
		<description>Yes, floating point numbers have a habit of naughtiness.  I think I learned little else I still consider relevant from low-level programming.
Of course, Perl programmers should use CPAN&#039;s Math::* libraries for better precision.
I note your example uses 2 decimal places and I know what you do for a living.  I prefer to store prices in pence, or the equivalent in whatever currency you use, instead of pounds, to avoid problems like this.
But then you get products that people typically buy in bulk with a unit cost of less than 1p, such as those electrical components we made a site for a couple of years ago.
Tough life programming, innit?
Happy birthday, belatedly, too.
</description>
		<content:encoded><![CDATA[<p>Yes, floating point numbers have a habit of naughtiness.  I think I learned little else I still consider relevant from low-level programming.<br />
Of course, Perl programmers should use CPAN&#8217;s Math::* libraries for better precision.<br />
I note your example uses 2 decimal places and I know what you do for a living.  I prefer to store prices in pence, or the equivalent in whatever currency you use, instead of pounds, to avoid problems like this.<br />
But then you get products that people typically buy in bulk with a unit cost of less than 1p, such as those electrical components we made a site for a couple of years ago.<br />
Tough life programming, innit?<br />
Happy birthday, belatedly, too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
