<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Use Math.round not (int) - I never claimed to be perfect!</title>
	<link>http://mgmblog.com/2009/01/28/use-mathround-not-int/</link>
	<description>My eclectic journey into the blogosphere</description>
	<pubDate>Fri, 30 Jul 2010 01:22:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: michael</title>
		<link>http://mgmblog.com/2009/01/28/use-mathround-not-int/#comment-374</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Wed, 28 Jan 2009 18:17:25 +0000</pubDate>
		<guid>http://mgmblog.com/2009/01/28/use-mathround-not-int/#comment-374</guid>
		<description>Thanks Jamie, fix made to post for the incorrect value of 2.26.


Tasos, I'm performing the conversion so I can take a currency value that the user has entered via an EditText view widget and convert it to an integer.  I'm only doing addition and subtraction and I believe that an integer is what I want to use.  Am I correct??</description>
		<content:encoded><![CDATA[<p>Thanks Jamie, fix made to post for the incorrect value of 2.26.</p>
<p>Tasos, I&#8217;m performing the conversion so I can take a currency value that the user has entered via an EditText view widget and convert it to an integer.  I&#8217;m only doing addition and subtraction and I believe that an integer is what I want to use.  Am I correct??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamie</title>
		<link>http://mgmblog.com/2009/01/28/use-mathround-not-int/#comment-373</link>
		<dc:creator>jamie</dc:creator>
		<pubDate>Wed, 28 Jan 2009 16:44:45 +0000</pubDate>
		<guid>http://mgmblog.com/2009/01/28/use-mathround-not-int/#comment-373</guid>
		<description>"2.26 * 100 = 235.99998" really threw me for a loop...I'm assuming that first number is supposed to be 2.36?

Also, is f*g some sort of censored swear word? ;-)

Anyway, this is a good reminder as something we don't always think of but can make a big difference...</description>
		<content:encoded><![CDATA[<p>&#8220;2.26 * 100 = 235.99998&#8243; really threw me for a loop&#8230;I&#8217;m assuming that first number is supposed to be 2.36?</p>
<p>Also, is f*g some sort of censored swear word? <img src='http://mgmblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Anyway, this is a good reminder as something we don&#8217;t always think of but can make a big difference&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tasos Kleisas</title>
		<link>http://mgmblog.com/2009/01/28/use-mathround-not-int/#comment-372</link>
		<dc:creator>Tasos Kleisas</dc:creator>
		<pubDate>Wed, 28 Jan 2009 12:07:11 +0000</pubDate>
		<guid>http://mgmblog.com/2009/01/28/use-mathround-not-int/#comment-372</guid>
		<description>Anyone that has been involved in financial applications will tell you that it is very bad practice to perform money calculations with floating point values. Use long ints to perform your calculations and just print it accordingly, that is fixed point math. Do not use floating point values!</description>
		<content:encoded><![CDATA[<p>Anyone that has been involved in financial applications will tell you that it is very bad practice to perform money calculations with floating point values. Use long ints to perform your calculations and just print it accordingly, that is fixed point math. Do not use floating point values!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
