<?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: Explicit Conversion Functions</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: emma</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-5170</link>
		<dc:creator>emma</dc:creator>
		<pubDate>Tue, 11 Jan 2005 12:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-5170</guid>
		<description>&lt;p&gt;Just to add to the 1st 2 comments up here - the rounding &quot;convention&quot; of rounding up at 0.5 is used by the majority of people but when you work in certain industries this is not accurate enough and therefore rounding to the nearest even number is much better - this includes banking (I think this method of rounding has a name something to do with accounting) and forecasting in virtually any industry. Rounding to the nearest even number is actually a &quot;convention&quot; it&#039;s just that it&#039;s only one that&#039;s used where huge amounts of data are found.&lt;br&gt;
The reason that some of the conversions use one convention and some another is so that you can use excel to do any of them.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just to add to the 1st 2 comments up here &#8211; the rounding &#8220;convention&#8221; of rounding up at 0.5 is used by the majority of people but when you work in certain industries this is not accurate enough and therefore rounding to the nearest even number is much better &#8211; this includes banking (I think this method of rounding has a name something to do with accounting) and forecasting in virtually any industry. Rounding to the nearest even number is actually a &#8220;convention&#8221; it&#8217;s just that it&#8217;s only one that&#8217;s used where huge amounts of data are found.<br />
The reason that some of the conversions use one convention and some another is so that you can use excel to do any of them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-1656</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 04 Jun 2004 19:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-1656</guid>
		<description>&lt;p&gt;jwolf:  I&#039;ve read your comment three times and it&#039;s still over my head.  Can you give me a short example of where this fails?  I&#039;d like to learn what you&#039;re talking about.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>jwolf:  I&#8217;ve read your comment three times and it&#8217;s still over my head.  Can you give me a short example of where this fails?  I&#8217;d like to learn what you&#8217;re talking about.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-1655</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 04 Jun 2004 19:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-1655</guid>
		<description>&lt;p&gt;Good point, Juan.  Harald convinced me that I should learn .net, now I just have to do it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Good point, Juan.  Harald convinced me that I should learn .net, now I just have to do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwolf</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-1654</link>
		<dc:creator>jwolf</dc:creator>
		<pubDate>Fri, 04 Jun 2004 18:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-1654</guid>
		<description>&lt;p&gt;How about CDec when filling a variant array with mixed data vectors?  Keeps XL VBA from auto-assigning as literal datetime when reading first cell(datetime) into a vector and preserves for calculations in VBA.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How about CDec when filling a variant array with mixed data vectors?  Keeps XL VBA from auto-assigning as literal datetime when reading first cell(datetime) into a vector and preserves for calculations in VBA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Pablo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-1653</link>
		<dc:creator>Juan Pablo</dc:creator>
		<pubDate>Fri, 04 Jun 2004 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-1653</guid>
		<description>&lt;p&gt;One good thing about this explicit conversions (altough I never use them either ;) ), is that it makes the transition to .Net easier...&lt;/p&gt;
&lt;p&gt;For example, this&lt;/p&gt;
&lt;p&gt;Dim i As Integer&lt;/p&gt;
&lt;p&gt;i = 1&lt;/p&gt;
&lt;p&gt;If i Then&lt;br&gt;
    &#039;Something&lt;br&gt;
End If&lt;/p&gt;
&lt;p&gt;would work in VBA, but would cause a compile error in .Net.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One good thing about this explicit conversions (altough I never use them either <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ), is that it makes the transition to .Net easier&#8230;</p>
<p>For example, this</p>
<p>Dim i As Integer</p>
<p>i = 1</p>
<p>If i Then<br />
    &#8216;Something<br />
End If</p>
<p>would work in VBA, but would cause a compile error in .Net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-1652</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 04 Jun 2004 17:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-1652</guid>
		<description>&lt;p&gt;vkd:  That makes sense.  My problem is that we have a convention and this doesn&#039;t follow it.  Even if it&#039;s arbitrary, it&#039;s what I would expect (which I guess is why it&#039;s a convention - to meet expectations.)  If CLng and CInt break convention, then why doesn&#039;t Round?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>vkd:  That makes sense.  My problem is that we have a convention and this doesn&#8217;t follow it.  Even if it&#8217;s arbitrary, it&#8217;s what I would expect (which I guess is why it&#8217;s a convention &#8211; to meet expectations.)  If CLng and CInt break convention, then why doesn&#8217;t Round?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vkd</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/04/explicit-conversion-functions/#comment-1651</link>
		<dc:creator>vkd</dc:creator>
		<pubDate>Fri, 04 Jun 2004 16:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=600#comment-1651</guid>
		<description>&lt;p&gt;You Write:&lt;br&gt;
&quot; According to help, CLng rounds decimals that are exactly .5 to the nearest even number. There&#039;s probably some lucid explanation for that, but it just seems crazy to me.&quot;&lt;/p&gt;
&lt;p&gt;Its not crazy. Consider that values ending in .5 are exactly between the nearest integers. The convention of always rounding them up is arbitrary, and can infact introduce a positive skew into a very (very) large data set. In a really big data set, rounding x.5 to the nearest even will round down as often as it rounds up, and thus eliminate the potential skew.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You Write:<br />
&#8221; According to help, CLng rounds decimals that are exactly .5 to the nearest even number. There&#8217;s probably some lucid explanation for that, but it just seems crazy to me.&#8221;</p>
<p>Its not crazy. Consider that values ending in .5 are exactly between the nearest integers. The convention of always rounding them up is arbitrary, and can infact introduce a positive skew into a very (very) large data set. In a really big data set, rounding x.5 to the nearest even will round down as often as it rounds up, and thus eliminate the potential skew.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

