<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<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 for Complete Ramblings of Justin Winkler</title>
	<link>http://ramblingsof.justinwinkler.com</link>
	<description>My thoughts (facts) on everything</description>
	<pubDate>Wed, 10 Mar 2010 17:37:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Velociroflcoptersaurus</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-1611</link>
		<dc:creator>Velociroflcoptersaurus</dc:creator>
		<pubDate>Mon, 08 Dec 2008 02:43:04 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-1611</guid>
		<description>rad</description>
		<content:encoded><![CDATA[<p>rad</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Rodrigo</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-115</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Mon, 20 Oct 2008 16:45:51 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-115</guid>
		<description>Hi, well, i don't know too much about esential programming, reading some internet web sites about this topic, i saw that "it's a world" to know about float and decimal numbers.

But how about to focus on functionality, i mean, a lot of people prefer "microsoft excel" or another ofimatic program and base their lives on it, they don't focus on accuaracy or precission, they just only round a decimal number bigger than "5" the previous decimal, and dislike scientific notation, How to do that?? it is there a class, or function?? i'm a newbie and i feel that this requirement it is not satisfied.</description>
		<content:encoded><![CDATA[<p>Hi, well, i don&#8217;t know too much about esential programming, reading some internet web sites about this topic, i saw that &#8220;it&#8217;s a world&#8221; to know about float and decimal numbers.</p>
<p>But how about to focus on functionality, i mean, a lot of people prefer &#8220;microsoft excel&#8221; or another ofimatic program and base their lives on it, they don&#8217;t focus on accuaracy or precission, they just only round a decimal number bigger than &#8220;5&#8243; the previous decimal, and dislike scientific notation, How to do that?? it is there a class, or function?? i&#8217;m a newbie and i feel that this requirement it is not satisfied.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Justin</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-113</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 08 Sep 2008 03:18:12 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-113</guid>
		<description>Very true, Julian. By using the to_d method appended to String by bigdecimal/util, you are no longer converting a Float type, therefor never encounter the accuracy issue. This may be the best way to construct a BigDecimal.</description>
		<content:encoded><![CDATA[<p>Very true, Julian. By using the to_d method appended to String by bigdecimal/util, you are no longer converting a Float type, therefor never encounter the accuracy issue. This may be the best way to construct a BigDecimal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Forwarding a dynamic argument &#8220;&#8230;(rest)&#8221; array in Flex by Fabio Barreiro</title>
		<link>http://ramblingsof.justinwinkler.com/forwarding-a-dynamic-argument-rest-array-in-flex#comment-111</link>
		<dc:creator>Fabio Barreiro</dc:creator>
		<pubDate>Fri, 05 Sep 2008 20:37:59 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/forwarding-a-dynamic-argument-rest-array-in-flex#comment-111</guid>
		<description>Thanks!!! I was stuck and this topic saved my life :-)</description>
		<content:encoded><![CDATA[<p>Thanks!!! I was stuck and this topic saved my life <img src='http://ramblingsof.justinwinkler.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Forwarding a dynamic argument &#8220;&#8230;(rest)&#8221; array in Flex by Jonathan</title>
		<link>http://ramblingsof.justinwinkler.com/forwarding-a-dynamic-argument-rest-array-in-flex#comment-107</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 01 Aug 2008 15:38:49 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/forwarding-a-dynamic-argument-rest-array-in-flex#comment-107</guid>
		<description>just an FYI, if you want to do the same trick with a RemoteObject you can do this:
var call : AsyncToken = someRemoteObj.someOpperation.send.apply(this, args);

thanks for the post! Helped me a lot.</description>
		<content:encoded><![CDATA[<p>just an FYI, if you want to do the same trick with a RemoteObject you can do this:<br />
var call : AsyncToken = someRemoteObj.someOpperation.send.apply(this, args);</p>
<p>thanks for the post! Helped me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Julian Burgess</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-103</link>
		<dc:creator>Julian Burgess</dc:creator>
		<pubDate>Thu, 12 Jun 2008 13:31:33 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-103</guid>
		<description>Unless I'm dumb, isn't string the answer?

x = "1.00000000000000000000000000000000001".to_d
=&#62; #
puts x.to_s("F")
"1.00000000000000000000000000000000001"</description>
		<content:encoded><![CDATA[<p>Unless I&#8217;m dumb, isn&#8217;t string the answer?</p>
<p>x = &#8220;1.00000000000000000000000000000000001&#8243;.to_d<br />
=&gt; #<br />
puts x.to_s(&#8221;F&#8221;)<br />
&#8220;1.00000000000000000000000000000000001&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Forwarding a dynamic argument &#8220;&#8230;(rest)&#8221; array in Flex by dl</title>
		<link>http://ramblingsof.justinwinkler.com/forwarding-a-dynamic-argument-rest-array-in-flex#comment-28</link>
		<dc:creator>dl</dc:creator>
		<pubDate>Fri, 18 Jan 2008 06:03:27 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/forwarding-a-dynamic-argument-rest-array-in-flex#comment-28</guid>
		<description>Thanks! I was trying to figure this out for hours.</description>
		<content:encoded><![CDATA[<p>Thanks! I was trying to figure this out for hours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Fu</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-6</link>
		<dc:creator>Fu</dc:creator>
		<pubDate>Fri, 12 Oct 2007 13:36:58 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-6</guid>
		<description>x = 1.00000000000001.to_d
=&#62; #

puts x.to_s('f')
=&#62; 1.00000000000001

It seems that 14 places is the limit.

x = 1.000000000000001.to_d
=&#62; #
puts x.to_s('f')
=&#62; 1.0

Going to the 15th drops the resolution.</description>
		<content:encoded><![CDATA[<p>x = 1.00000000000001.to_d<br />
=&gt; #</p>
<p>puts x.to_s(&#8217;f')<br />
=&gt; 1.00000000000001</p>
<p>It seems that 14 places is the limit.</p>
<p>x = 1.000000000000001.to_d<br />
=&gt; #<br />
puts x.to_s(&#8217;f')<br />
=&gt; 1.0</p>
<p>Going to the 15th drops the resolution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Spacebat</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-5</link>
		<dc:creator>Spacebat</dc:creator>
		<pubDate>Wed, 10 Oct 2007 21:41:19 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-5</guid>
		<description>&lt;code&gt;
x = 1.2000000000000000001.to_d
&lt;/code&gt;

I think what's actually happening here is, Ruby converts the literal number into a float. The float can't represent the 1 at the end so its lost. Then to_d is called and never sees the 1 at the end.

I remember using Borland compilers back in the 90s, and they supported BCD (Binary Coded Decimal). This was the recommended format for financial calculations, but it was slower and slightly wasteful of memory compared to binary floats. Still I'd wager its faster/smaller than BigDecimal (unless the latter is implemented in the former)</description>
		<content:encoded><![CDATA[<p><code><br />
x = 1.2000000000000000001.to_d<br />
</code></p>
<p>I think what&#8217;s actually happening here is, Ruby converts the literal number into a float. The float can&#8217;t represent the 1 at the end so its lost. Then to_d is called and never sees the 1 at the end.</p>
<p>I remember using Borland compilers back in the 90s, and they supported BCD (Binary Coded Decimal). This was the recommended format for financial calculations, but it was slower and slightly wasteful of memory compared to binary floats. Still I&#8217;d wager its faster/smaller than BigDecimal (unless the latter is implemented in the former)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When crap just doesn&#8217;t add up&#8230; by Jim R. Wilson</title>
		<link>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-4</link>
		<dc:creator>Jim R. Wilson</dc:creator>
		<pubDate>Tue, 09 Oct 2007 18:44:39 +0000</pubDate>
		<guid>http://ramblingsof.justinwinkler.com/when-crap-just-doesnt-add-up#comment-4</guid>
		<description>Nope, nevermind - it really is a problem.  In Ruby, 1.2 - 1.0 - 0.2 gives you -5.55111512312578e-17</description>
		<content:encoded><![CDATA[<p>Nope, nevermind - it really is a problem.  In Ruby, 1.2 - 1.0 - 0.2 gives you -5.55111512312578e-17</p>
]]></content:encoded>
	</item>
</channel>
</rss>
