<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-399914423284504036.comments</id><updated>2012-02-07T07:14:08.259-08:00</updated><category term='PHP'/><category term='filesystem'/><category term='personal'/><category term='arrays'/><category term='UOM'/><category term='best practices'/><category term='Calculus'/><category term='roman numerals'/><category term='Star Wars'/><category term='ASP'/><category term='regular expressions'/><category term='atomic'/><category term='VB.NET'/><category term='Math'/><category term='SSL'/><category term='chemistry'/><category term='datetime'/><category term='Trigonometry'/><category term='strings'/><category term='Temperature'/><category term='Star Trek'/><category term='control structures'/><category term='ASP.NET'/><title type='text'>Reusable Code</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://reusablecode.blogspot.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/comments/default'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Scott</name><uri>http://www.blogger.com/profile/00069741645360718046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-3641821701537316564</id><published>2012-02-07T07:14:08.259-08:00</published><updated>2012-02-07T07:14:08.259-08:00</updated><title type='text'>That&amp;#39;s the biggest reason why I didn&amp;#39;t lic...</title><content type='html'>That&amp;#39;s the biggest reason why I didn&amp;#39;t license my code under GPL in the first place: I didn&amp;#39;t want to restrict people from using it in non-GPL works.&lt;br /&gt;&lt;br /&gt;I know that&amp;#39;s not the answer you want to hear, but I do have a solution for you. The code is not very complicated, so you could probably write your own equivalent using my code only as reference.&lt;br /&gt;&lt;br /&gt;What I recommend for attribution is just a link back to this blog post. I personally find it helpful when going through someone&amp;#39;s code (or even my own several months later) to see where the heck something came from.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1404111035089034615/comments/default/3641821701537316564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1404111035089034615/comments/default/3641821701537316564'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2009/04/social-security-numbers.html?showComment=1328627648259#c3641821701537316564' title=''/><author><name>Scott</name><uri>http://www.blogger.com/profile/00069741645360718046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2009/04/social-security-numbers.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-1404111035089034615' source='http://www.blogger.com/feeds/399914423284504036/posts/default/1404111035089034615' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-442037313'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 7, 2012 7:14 AM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-3227405703978812966</id><published>2012-02-05T20:35:21.611-08:00</published><updated>2012-02-05T20:35:21.611-08:00</updated><title type='text'>It seems the Drupal policy on outside code restric...</title><content type='html'>It seems the Drupal policy on outside code restricts to GPL only.  Would you be willing to change the license over to GPL?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1404111035089034615/comments/default/3227405703978812966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1404111035089034615/comments/default/3227405703978812966'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2009/04/social-security-numbers.html?showComment=1328502921611#c3227405703978812966' title=''/><author><name>Deryck</name><uri>http://www.blogger.com/profile/15049266430402442945</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2009/04/social-security-numbers.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-1404111035089034615' source='http://www.blogger.com/feeds/399914423284504036/posts/default/1404111035089034615' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1620554118'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 5, 2012 8:35 PM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-3110372268097334100</id><published>2012-02-05T19:12:20.835-08:00</published><updated>2012-02-05T19:12:20.835-08:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1404111035089034615/comments/default/3110372268097334100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1404111035089034615/comments/default/3110372268097334100'/><author><name>Deryck</name><uri>http://www.blogger.com/profile/15049266430402442945</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2009/04/social-security-numbers.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-1404111035089034615' source='http://www.blogger.com/feeds/399914423284504036/posts/default/1404111035089034615' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1620554118'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 5, 2012 7:12 PM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-4498003840749766913</id><published>2011-01-24T17:11:25.215-08:00</published><updated>2011-01-24T17:11:25.215-08:00</updated><title type='text'>Interesting. I tried to do some testing in PHP but...</title><content type='html'>Interesting. I tried to do some testing in PHP but my web server is not behaving itself. I switched to a piece of regular expression software and was able to get the expected result with the following pattern: ^[A-Z\s_]+$&lt;br /&gt;&lt;br /&gt;I&amp;#39;m hesitant to update my original code without proper testing in PHP though.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/306965090116459324/comments/default/4498003840749766913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/306965090116459324/comments/default/4498003840749766913'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/07/isalphanumeric.html?showComment=1295917885215#c4498003840749766913' title=''/><author><name>Scott</name><uri>http://www.blogger.com/profile/00069741645360718046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/07/isalphanumeric.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-306965090116459324' source='http://www.blogger.com/feeds/399914423284504036/posts/default/306965090116459324' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-442037313'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 24, 2011 5:11 PM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-7660917050616277184</id><published>2011-01-20T08:28:37.359-08:00</published><updated>2011-01-20T08:28:37.359-08:00</updated><title type='text'>I assume the PHP isAlpha() function is supposed to...</title><content type='html'>I assume the PHP isAlpha() function is supposed to mirror the built-in is_numeric() function.  However, it does not, because it allows numeric characters.  For example take the string &amp;quot;234kol&amp;quot;.  The is_numeric() function will return FALSE because while the string does contain numbers, it also contains characters.  However, your isAlpha() function will return TRUE, ignoring the fact that the string contains numbers.  It is a subtle but important distinction.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/306965090116459324/comments/default/7660917050616277184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/306965090116459324/comments/default/7660917050616277184'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/07/isalphanumeric.html?showComment=1295540917359#c7660917050616277184' title=''/><author><name>QuantumState</name><uri>http://www.blogger.com/profile/12839168525744374913</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/07/isalphanumeric.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-306965090116459324' source='http://www.blogger.com/feeds/399914423284504036/posts/default/306965090116459324' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2036339488'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 20, 2011 8:28 AM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-4295582055916995885</id><published>2010-08-14T11:16:13.150-07:00</published><updated>2010-08-14T11:16:13.150-07:00</updated><title type='text'>I like your Roman Numeral library. I needed a func...</title><content type='html'>I like your Roman Numeral library. I needed a function to test for Roman numerals, so I wrote this one:&lt;br /&gt;&lt;br /&gt;// Check to see if the string is a Roman Numeral&lt;br /&gt;// NOTE: this doesn&amp;#39;t check for fractions, overbars, the Bede &amp;quot;N&amp;quot; (zero) etc.&lt;br /&gt;// NOTE: It also doesn&amp;#39;t check for a well-formed Roman Numeral.&lt;br /&gt;function is_roman_numeral( $roman )&lt;br /&gt;{&lt;br /&gt; // Strip every non-word character &lt;br /&gt; // - A-Z, 0-9, apostrophe and understcore are what&amp;#39;s left&lt;br /&gt; $roman = preg_replace( &amp;quot;/[^A-Z0-9_&amp;#39;]/iu&amp;quot;, &amp;quot;&amp;quot;, $roman );&lt;br /&gt;&lt;br /&gt; // if it contains anything other than MDCLXVI, then it&amp;#39;s not a Roman Numeral&lt;br /&gt; $result = preg_match( &amp;quot;/[^MDCLXVI]/u&amp;quot;, $roman );&lt;br /&gt;&lt;br /&gt; if( $result )&lt;br /&gt; {&lt;br /&gt;  return FALSE;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; return TRUE;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Who knows if blogger is going to show it properly. If not, just contact me and I&amp;#39;ll send it you in email or something.&lt;br /&gt;&lt;br /&gt;Anyway, it&amp;#39;s something I wrote in 5 minutes. If you want to add it to your library, modified or otherwise, please feel free.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/6657379099464582532/comments/default/4295582055916995885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/6657379099464582532/comments/default/4295582055916995885'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/03/roman-numerals-part-1.html?showComment=1281809773150#c4295582055916995885' title=''/><author><name>Keith Alexander</name><uri>http://www.blogger.com/profile/03164086700339769547</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://lh6.google.com/image/efesar/RkOw6gOc0gI/AAAAAAAAB6g/1f3w78UYpvU/s144/Picture%20007.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/03/roman-numerals-part-1.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-6657379099464582532' source='http://www.blogger.com/feeds/399914423284504036/posts/default/6657379099464582532' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1475902656'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='August 14, 2010 11:16 AM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-5349339313976244417</id><published>2010-05-12T21:37:22.658-07:00</published><updated>2010-05-12T21:37:22.658-07:00</updated><title type='text'>&amp;lt;?php
$string = &amp;quot;string&amp;quot;;
$array = pr...</title><content type='html'>&amp;lt;?php&lt;br /&gt;$string = &amp;quot;string&amp;quot;;&lt;br /&gt;$array = preg_split(&amp;#39;//&amp;#39;, $string, -1, PREG_SPLIT_NO_EMPTY);&lt;br /&gt;foreach($array as $char) &lt;br /&gt;{&lt;br /&gt;    print(phonetic($char).&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;);&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;This outputs:&lt;br /&gt;sierra&lt;br /&gt;tango&lt;br /&gt;romeo&lt;br /&gt;india&lt;br /&gt;november&lt;br /&gt;golf</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1412460892754366359/comments/default/5349339313976244417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1412460892754366359/comments/default/5349339313976244417'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2009/02/phonetic-alphabet.html?showComment=1273725442658#c5349339313976244417' title=''/><author><name>Scott</name><uri>http://www.blogger.com/profile/00069741645360718046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2009/02/phonetic-alphabet.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-1412460892754366359' source='http://www.blogger.com/feeds/399914423284504036/posts/default/1412460892754366359' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-442037313'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='May 12, 2010 9:37 PM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-4461938460903207303</id><published>2010-05-12T05:44:00.115-07:00</published><updated>2010-05-12T05:44:00.115-07:00</updated><title type='text'>u write: &amp;quot;Looping through the characters of t...</title><content type='html'>u write: &amp;quot;Looping through the characters of the string will occur outside the function.&amp;quot; - can you post any short example code that will work? cant get it done. thanks!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1412460892754366359/comments/default/4461938460903207303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/1412460892754366359/comments/default/4461938460903207303'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2009/02/phonetic-alphabet.html?showComment=1273668240115#c4461938460903207303' title=''/><author><name>ich</name><uri>http://www.blogger.com/profile/17600129966038006753</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2009/02/phonetic-alphabet.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-1412460892754366359' source='http://www.blogger.com/feeds/399914423284504036/posts/default/1412460892754366359' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-527725860'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='May 12, 2010 5:44 AM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-7797955071332098084</id><published>2009-06-20T10:18:06.410-07:00</published><updated>2009-06-20T10:18:06.410-07:00</updated><title type='text'>Thanks, I&amp;#39;ve updated the example.</title><content type='html'>Thanks, I&amp;#39;ve updated the example.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/78353685052406168/comments/default/7797955071332098084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/78353685052406168/comments/default/7797955071332098084'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/10/roots.html?showComment=1245518286410#c7797955071332098084' title=''/><author><name>Scott</name><uri>http://www.blogger.com/profile/00069741645360718046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/10/roots.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-78353685052406168' source='http://www.blogger.com/feeds/399914423284504036/posts/default/78353685052406168' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-442037313'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 20, 2009 10:18 AM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-3040468586733581079</id><published>2009-06-18T09:25:42.055-07:00</published><updated>2009-06-18T09:25:42.055-07:00</updated><title type='text'>No idea about ASP, but your PHP example is wrong. ...</title><content type='html'>No idea about ASP, but your PHP example is wrong. ^ is the bitwise XOR operator in PHP.&lt;br /&gt;&lt;br /&gt;This is what you want:&lt;br /&gt;&lt;br /&gt;public function nth_root($x, $y)&lt;br /&gt;{&lt;br /&gt;  return pow($x, 1/$y);&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/78353685052406168/comments/default/3040468586733581079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/78353685052406168/comments/default/3040468586733581079'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/10/roots.html?showComment=1245342342055#c3040468586733581079' title=''/><author><name>Raise</name><uri>http://www.blogger.com/profile/01601396489283945774</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/10/roots.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-78353685052406168' source='http://www.blogger.com/feeds/399914423284504036/posts/default/78353685052406168' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-667515538'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 18, 2009 9:25 AM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-4963923333831633289</id><published>2009-02-07T19:51:00.000-08:00</published><updated>2009-02-07T19:51:00.000-08:00</updated><title type='text'>Thanks, I've updated the code both here and on Sni...</title><content type='html'>Thanks, I've updated the code both here and on Snipplr.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/6334619494030365695/comments/default/4963923333831633289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/6334619494030365695/comments/default/4963923333831633289'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/05/base-conversion.html?showComment=1234065060000#c4963923333831633289' title=''/><author><name>Scott</name><uri>http://www.blogger.com/profile/00069741645360718046</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/05/base-conversion.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-6334619494030365695' source='http://www.blogger.com/feeds/399914423284504036/posts/default/6334619494030365695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-442037313'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 7, 2009 7:51 PM'/></entry><entry><id>tag:blogger.com,1999:blog-399914423284504036.post-5053196002002923814</id><published>2009-02-06T12:54:00.000-08:00</published><updated>2009-02-06T12:54:00.000-08:00</updated><title type='text'>There is a bug in the toDecimal function - try cal...</title><content type='html'>There is a bug in the toDecimal function - try caling toDecimal("8A", 36) and get 0 back.&lt;BR/&gt;&lt;BR/&gt;The issue is you do not convert a numeric digit to an Integer, so VBScript does a string comparison and "8" is greater than "36".&lt;BR/&gt;&lt;BR/&gt;I suggest adding an else to the if not isnumeric:&lt;BR/&gt;else&lt;BR/&gt;    digit = CInt(digit)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/6334619494030365695/comments/default/5053196002002923814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/399914423284504036/6334619494030365695/comments/default/5053196002002923814'/><link rel='alternate' type='text/html' href='http://reusablecode.blogspot.com/2008/05/base-conversion.html?showComment=1233953640000#c5053196002002923814' title=''/><author><name>NetMage</name><uri>http://www.blogger.com/profile/00449402985371140771</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://reusablecode.blogspot.com/2008/05/base-conversion.html' ref='tag:blogger.com,1999:blog-399914423284504036.post-6334619494030365695' source='http://www.blogger.com/feeds/399914423284504036/posts/default/6334619494030365695' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-966667952'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 6, 2009 12:54 PM'/></entry></feed>
