<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Fun With Floating Point Arithmetic, Part Three</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/17/fun-with-floating-point-arithmetic-part-three.aspx</link><description>I've been getting lots of mail, questions and pointers to interesting articles on some of the trials and tribulations of using floating point arithmetic correctly. Please do keep it coming! Though I am certainly no expert in this area, I'm happy to take</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Fun With Floating Point Arithmetic, Part Three</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/17/fun-with-floating-point-arithmetic-part-three.aspx#354843</link><pubDate>Tue, 18 Jan 2005 02:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:354843</guid><dc:creator>Norman Diamond</dc:creator><description>Sounds like this:&lt;br&gt;var x = 9223372036854777856&lt;br&gt;print(x)&lt;br&gt;would print 9223372036854777000&lt;br&gt;instead of 9223372036854778000&lt;br&gt;&lt;br&gt;Did anyone ever complain about the rounding being wrong?  Of course you pointed us to a standard which allows the rounding to be wrong, and efforts to provide nice &amp;quot;round trip&amp;quot; conversions do require rounding to be wrong in some cases, but anyone who doesn't understand floating point well enough will surely not understand these points, and we might expect them to complain.&lt;br&gt;&lt;br&gt;I really dislike this part of both the standard and the behaviour.  Any programmer who doesn't understand floating point well enough for this should be doing other kinds of programming instead.&lt;br&gt;&lt;br&gt;The following looks like hyperbole but unfortunately it isn't.  Imagine a programmer who doesn't understand floating point well enough and yet uses floating point in controlling a car.  In fact imagine doing a printf() with a precision of 3 decimal places, reading it back in, and depending on the imagined pseudo-fact that the value will be the same as before it was printf()'ed.  The result could be a crash.  After my boss told me that the original programmer was not a programmer and did not understand floating point, I understood to take the original code as a rough model instead of a spec.</description></item><item><title>"Not Understanding Floating Point"</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/17/fun-with-floating-point-arithmetic-part-three.aspx#355397</link><pubDate>Tue, 18 Jan 2005 19:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:355397</guid><dc:creator>Dave</dc:creator><description> &amp;quot;...did not understand floating point...&amp;quot;&lt;br&gt;&lt;br&gt;If floating point was obvious and easy to understand then there is no way Eric could milk it for several long blog entries. :)&lt;br&gt;</description></item><item><title>re: Fun With Floating Point Arithmetic, Part Three</title><link>http://blogs.msdn.com/ericlippert/archive/2005/01/17/fun-with-floating-point-arithmetic-part-three.aspx#9937446</link><pubDate>Wed, 16 Dec 2009 02:47:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9937446</guid><dc:creator>Randall Knapp</dc:creator><description>&lt;p&gt;I quote:&lt;/p&gt;
&lt;p&gt;# &amp;nbsp;k&amp;#179; 1, 10k-1 &amp;#163; s &amp;lt; 10k, the number value for s &amp;#180; 10n-k is m&lt;/p&gt;
&lt;p&gt;What? I think some kind of character encoding got messed up here. What is this actual equation, and would you repeat the other equations in the algorithm?&lt;/p&gt;
</description></item></channel></rss>