<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Luhn Algorithm Validation in VBScript (ASP)</title>
	<link>http://www.nilpo.com/2009/02/windows-xp/luhn-algorithm-validation-in-vbscript-asp/</link>
	<description>Ask the Windows Guru!</description>
	<pubDate>Sat, 04 Feb 2012 12:10:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Nilpo</title>
		<link>http://www.nilpo.com/2009/02/windows-xp/luhn-algorithm-validation-in-vbscript-asp/#comment-70916</link>
		<dc:creator>Nilpo</dc:creator>
		<pubDate>Fri, 11 Dec 2009 23:46:41 +0000</pubDate>
		<guid>http://www.nilpo.com/2009/02/windows-xp/luhn-algorithm-validation-in-vbscript-asp/#comment-70916</guid>
		<description>The code processes from left to right, but it's done using logic.  I've first determined the parity of each digit (it's even or odd position from the right).

Since addition is cumulative, you can add from the left to the right or from the right to the left and come up with the same sum as long as you know the correct parity for processing each digit.

I've used this approach to save on processing requirements as opposed to reversing the string or reading it directly from right to left (which requires reversing the string internally).  The key is that finding a digit's parity achieves the same effect.</description>
		<content:encoded><![CDATA[<p>The code processes from left to right, but it&#8217;s done using logic.  I&#8217;ve first determined the parity of each digit (it&#8217;s even or odd position from the right).</p>
<p>Since addition is cumulative, you can add from the left to the right or from the right to the left and come up with the same sum as long as you know the correct parity for processing each digit.</p>
<p>I&#8217;ve used this approach to save on processing requirements as opposed to reversing the string or reading it directly from right to left (which requires reversing the string internally).  The key is that finding a digit&#8217;s parity achieves the same effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rush</title>
		<link>http://www.nilpo.com/2009/02/windows-xp/luhn-algorithm-validation-in-vbscript-asp/#comment-70908</link>
		<dc:creator>rush</dc:creator>
		<pubDate>Fri, 11 Dec 2009 21:44:07 +0000</pubDate>
		<guid>http://www.nilpo.com/2009/02/windows-xp/luhn-algorithm-validation-in-vbscript-asp/#comment-70908</guid>
		<description>Your code does not match the text. The text says process each character from right to left, the code is processing then from left to right. Which is right?</description>
		<content:encoded><![CDATA[<p>Your code does not match the text. The text says process each character from right to left, the code is processing then from left to right. Which is right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

