<?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 parseInt() quirk</title>
	<atom:link href="http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/</link>
	<description>Rich Internet Application development</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:10:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Carl Sharman</title>
		<link>http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/comment-page-1/#comment-119942</link>
		<dc:creator>Carl Sharman</dc:creator>
		<pubDate>Thu, 16 Sep 2010 11:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/#comment-119942</guid>
		<description>Nice one, just ran into the same issue, thanks for sharing this.  Go Sharmans :)</description>
		<content:encoded><![CDATA[<p>Nice one, just ran into the same issue, thanks for sharing this.  Go Sharmans <img src='http://www.chapter31.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JS</title>
		<link>http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/comment-page-1/#comment-118969</link>
		<dc:creator>JS</dc:creator>
		<pubDate>Fri, 13 Aug 2010 11:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/#comment-118969</guid>
		<description>Hi,
I noticed this quirk too!  Say if your date field is &quot;01/07/2010&quot; you get &quot;07&quot; for your month field which needs converting to int 7.  If you do (&quot;07&quot;*1) you will get a value 7.  JavaScript sees the * sign as an integer function so converts the string to an integer for you.

What I noticed:
&quot;07&quot;+1 == &quot;071&quot; // you can&#039;t do this as it converts to string &#039;+&#039; is overloaded
&quot;07&quot;*1 == 7     // ok
&quot;07&quot;-1 == 6     // ok

Is this better/faster than your method?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I noticed this quirk too!  Say if your date field is &#8220;01/07/2010&#8243; you get &#8220;07&#8243; for your month field which needs converting to int 7.  If you do (&#8220;07&#8243;*1) you will get a value 7.  JavaScript sees the * sign as an integer function so converts the string to an integer for you.</p>
<p>What I noticed:<br />
&#8220;07&#8243;+1 == &#8220;071&#8243; // you can&#8217;t do this as it converts to string &#8216;+&#8217; is overloaded<br />
&#8220;07&#8243;*1 == 7     // ok<br />
&#8220;07&#8243;-1 == 6     // ok</p>
<p>Is this better/faster than your method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/comment-page-1/#comment-21798</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Wed, 26 Sep 2007 17:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2006/09/28/javascript-parseint-quirk/#comment-21798</guid>
		<description>Thanks for this. I spent half the day trouble shooting this very issue.</description>
		<content:encoded><![CDATA[<p>Thanks for this. I spent half the day trouble shooting this very issue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: chapter31.nfshost.com @ 2012-02-09 07:55:17 -->
