<?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: On integers, floating-point numbers, and rounding</title>
	<atom:link href="http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/feed/" rel="self" type="application/rss+xml" />
	<link>http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 02:39:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nick Barnes</title>
		<link>http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/comment-page-1/#comment-2387</link>
		<dc:creator>Nick Barnes</dc:creator>
		<pubDate>Sun, 13 Jun 2010 18:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://clearclimatecode.org/?p=165#comment-2387</guid>
		<description>&lt;i&gt;Why are Fahrenheit numbers being used in scientific data anyway?&lt;/i&gt;
Because it is US weather data, which has always been, and continues to be, recorded in degrees Fahrenheit.  Degrees Fahrenheit may not be my favoured unit, but they are a respectable scientific unit nonetheless.
Any more dissing of Fahrenheit is off-topic here.</description>
		<content:encoded><![CDATA[<p><i>Why are Fahrenheit numbers being used in scientific data anyway?</i><br />
Because it is US weather data, which has always been, and continues to be, recorded in degrees Fahrenheit.  Degrees Fahrenheit may not be my favoured unit, but they are a respectable scientific unit nonetheless.<br />
Any more dissing of Fahrenheit is off-topic here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/comment-page-1/#comment-2374</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Tue, 08 Jun 2010 23:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://clearclimatecode.org/?p=165#comment-2374</guid>
		<description>Why are Fahrenheit numbers being used in scientific data anyway?</description>
		<content:encoded><![CDATA[<p>Why are Fahrenheit numbers being used in scientific data anyway?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick.Barnes</title>
		<link>http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/comment-page-1/#comment-293</link>
		<dc:creator>Nick.Barnes</dc:creator>
		<pubDate>Wed, 24 Feb 2010 17:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://clearclimatecode.org/?p=165#comment-293</guid>
		<description>A comment to correct an error I made in the post.  The USHCNv1 dataset has Fahrenheit temperatures to two decimal places, not to one as I stated in the post.  For instance, a reading might be &quot;66.83&quot;. Reading this produces 4702743173393285.2&lt;sup&gt;-46&lt;/sup&gt;, i.e. 66.8299999999999982946974341757595539093017578125.  Converting with multiplication first produces 387.2&lt;sup&gt;-1&lt;/sup&gt;, i.e. 193.5, exactly the &quot;right&quot; answer (19.35 Celsius == 66.83 Fahrenheit).  Converting by division first, or by multiplying by the factor (50.0/9.0), produces 6808175999188991.2&lt;sup&gt;-45&lt;/sup&gt;, which is less by 2&lt;sup&gt;-45&lt;/sup&gt;. Critically, this latter value rounds to a different integer (193 instead of 194).  In this way, explicit rounding and truncation can amplify some floating-point rounding errors.  A small proportion of the USHCNv1 dataset is prone to exactly this problem: some of them round up, some down.  This problem does not occur with the USHCNv2 dataset, or the other input datasets.

As it happens, even these amplified errors balance out in the later parts of the system, especially in the combination, averaging, and anomaly steps, and are not visible in the end results.  But still, now that we no longer need to pass the dataset through plain-text intermediate files, the code is clearer without these explicit rounding and truncation steps.</description>
		<content:encoded><![CDATA[<p>A comment to correct an error I made in the post.  The USHCNv1 dataset has Fahrenheit temperatures to two decimal places, not to one as I stated in the post.  For instance, a reading might be &#8220;66.83&#8243;. Reading this produces 4702743173393285.2<sup>-46</sup>, i.e. 66.8299999999999982946974341757595539093017578125.  Converting with multiplication first produces 387.2<sup>-1</sup>, i.e. 193.5, exactly the &#8220;right&#8221; answer (19.35 Celsius == 66.83 Fahrenheit).  Converting by division first, or by multiplying by the factor (50.0/9.0), produces 6808175999188991.2<sup>-45</sup>, which is less by 2<sup>-45</sup>. Critically, this latter value rounds to a different integer (193 instead of 194).  In this way, explicit rounding and truncation can amplify some floating-point rounding errors.  A small proportion of the USHCNv1 dataset is prone to exactly this problem: some of them round up, some down.  This problem does not occur with the USHCNv2 dataset, or the other input datasets.</p>
<p>As it happens, even these amplified errors balance out in the later parts of the system, especially in the combination, averaging, and anomaly steps, and are not visible in the end results.  But still, now that we no longer need to pass the dataset through plain-text intermediate files, the code is clearer without these explicit rounding and truncation steps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drj</title>
		<link>http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/comment-page-1/#comment-291</link>
		<dc:creator>drj</dc:creator>
		<pubDate>Wed, 24 Feb 2010 12:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://clearclimatecode.org/?p=165#comment-291</guid>
		<description>@AndyB: Yes, there really is.</description>
		<content:encoded><![CDATA[<p>@AndyB: Yes, there really is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndyB</title>
		<link>http://clearclimatecode.org/on-integers-floating-point-numbers-and-rounding/comment-page-1/#comment-290</link>
		<dc:creator>AndyB</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://clearclimatecode.org/?p=165#comment-290</guid>
		<description>I&#039;ve never known how floats actually worked - I supposed if pressed I would have guessed something like that given the nature of computing. But, c&#039;mon 2^-45? Is there really discussion out in the blogs that claims floating point arithmetic is at all relevant to the thermometer record? That&#039;s just silly on the face of it.

Thanks for the lesson!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never known how floats actually worked &#8211; I supposed if pressed I would have guessed something like that given the nature of computing. But, c&#8217;mon 2^-45? Is there really discussion out in the blogs that claims floating point arithmetic is at all relevant to the thermometer record? That&#8217;s just silly on the face of it.</p>
<p>Thanks for the lesson!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
