<?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: JavaScript cast to Number</title>
	<atom:link href="http://www.dweebd.com/ruby/javascript-cast-to-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dweebd.com/ruby/javascript-cast-to-number/</link>
	<description>Web Freshness</description>
	<lastBuildDate>Mon, 05 Jul 2010 23:44:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: duncanbeevers</title>
		<link>http://www.dweebd.com/ruby/javascript-cast-to-number/comment-page-1/#comment-564</link>
		<dc:creator>duncanbeevers</dc:creator>
		<pubDate>Thu, 21 Jan 2010 22:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dweebd.com/?p=208#comment-564</guid>
		<description>&lt;code lang=&quot;bash&quot;&gt;
var data = [ undefined, null, 1, 10.2, new Date() ];
for (var i = 0, len = data.length; i &lt; len; i++)
  console.log(&#039;cast %o: %o&#039;, data[i], +data[i]);

cast undefined: NaN
cast null: 0
cast 1: 1
cast 10.2: 10.2
cast Thu Jan 21 2010 14:54:49 GMT-0800 (PST): 1264114489041
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><pre class="bash">var data = <span class="br0">&#91;</span> undefined, null, <span class="nu0">1</span>, <span class="nu0">10.2</span>, new Date<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#93;</span>;
<span class="kw1">for</span> <span class="br0">&#40;</span>var i = <span class="nu0">0</span>, len = data.length; i <span class="sy0">&lt;</span> len; i++<span class="br0">&#41;</span>
  console.log<span class="br0">&#40;</span><span class="st0">'cast %o: %o'</span>, data<span class="br0">&#91;</span>i<span class="br0">&#93;</span>, +data<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="br0">&#41;</span>;
&nbsp;
cast undefined: NaN
cast null: <span class="nu0">0</span>
cast <span class="nu0">1</span>: <span class="nu0">1</span>
cast <span class="nu0">10.2</span>: <span class="nu0">10.2</span>
cast Thu Jan <span class="nu0">21</span> <span class="nu0">2010</span> <span class="nu0">14</span>:<span class="nu0">54</span>:<span class="nu0">49</span> GMT<span class="nu0">-0800</span> <span class="br0">&#40;</span>PST<span class="br0">&#41;</span>: <span class="nu0">1264114489041</span></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.dweebd.com/ruby/javascript-cast-to-number/comment-page-1/#comment-563</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Thu, 21 Jan 2010 22:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dweebd.com/?p=208#comment-563</guid>
		<description>Can we get the output for those of us who are lazy and don&#039;t want to run it ourselves?</description>
		<content:encoded><![CDATA[<p>Can we get the output for those of us who are lazy and don&#8217;t want to run it ourselves?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.479 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-08-03 19:57:02 -->

