<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx</link><description>Here's another recent question I've received on bit twiddling in VBScript: You discussed the issues with interpreting error results that come back interpreted as signed longs last year. Suppose we have a large unsigned long value, something like E18F4994</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#9771991</link><pubDate>Thu, 18 Jun 2009 06:17:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9771991</guid><dc:creator>r0ck</dc:creator><description>&lt;p&gt;Might be kinda dumb, but I learned VBScript by making keyboard macros. I used this website to get started &lt;a rel="nofollow" target="_new" href="http://vbscript-macro-template.blogspot.com/"&gt;http://vbscript-macro-template.blogspot.com/&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9771991" width="1" height="1"&gt;</description></item><item><title>Floating Point Arithmetic, Part One</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#4795399</link><pubDate>Fri, 07 Sep 2007 01:08:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4795399</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;p&gt;A month ago I was discussing some of the issues in integer arithmetic , and I said that issues in floating&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4795399" width="1" height="1"&gt;</description></item><item><title>Hex SID to Decimal SID Translation &amp;laquo; Scripting. Stuff. (By Froosh)</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#4732981</link><pubDate>Tue, 04 Sep 2007 05:32:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4732981</guid><dc:creator>Hex SID to Decimal SID Translation « Scripting. Stuff. (By Froosh)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://froosh.wordpress.com/2005/10/21/hex-sid-to-decimal-sid-translation/"&gt;http://froosh.wordpress.com/2005/10/21/hex-sid-to-decimal-sid-translation/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4732981" width="1" height="1"&gt;</description></item><item><title>Floating Point Arithmetic, Part One</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#350185</link><pubDate>Tue, 11 Jan 2005 01:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:350185</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=350185" width="1" height="1"&gt;</description></item><item><title>Floating Point Arithmetic, Part One</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#350109</link><pubDate>Mon, 10 Jan 2005 22:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:350109</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=350109" width="1" height="1"&gt;</description></item><item><title>re: Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#276053</link><pubDate>Tue, 07 Dec 2004 01:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:276053</guid><dc:creator>Norman Diamond</dc:creator><description>I even had a colleague who was a software engineer, more highly paid than me and seemed to be deserving of it, who participated in development of debuggers and such stuff ... and one day it turned out that she wasn't aware of two's complement.  That was sure startling.  I don't think I ever asked what she had studied in university, but that wasn't the moment to ask anyway.&lt;br&gt;&lt;br&gt;There are quite a lot of engineers who don't understand that floating point has less than perfect precision in hardware and in ordinary programming languages, and they don't know how to deal with the fact.  Even someone who did a C-style printf to write numbers with 3 digits after the decimal point and then read them back later didn't understand that the results didn't match the original numbers before they were written.  I don't know if this is harder or easier than two's complement, and in these cases maybe the engineering skills aren't in the computer area, but still...  You have to learn to be patient with some of these people.&lt;br&gt;&lt;br&gt;Of course when someone has studied the matter and still manages to be unaware of it, or when someone markets a product and it fails and they renege on their warranties because they don't understand it, then it's different.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=276053" width="1" height="1"&gt;</description></item><item><title>re: Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#275801</link><pubDate>Mon, 06 Dec 2004 18:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275801</guid><dc:creator>Mat Hall</dc:creator><description>Sorry, didn't mean to be condescending; it was genuine surprise!  (I don't have a comp sci degree either, by the way.)  I was also a bit surprised that in your explanation you didn't mention its name...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275801" width="1" height="1"&gt;</description></item><item><title>re: Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#275759</link><pubDate>Mon, 06 Dec 2004 17:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275759</guid><dc:creator>Eric Lippert</dc:creator><description>Dude, contain the condescension.  &lt;br&gt;&lt;br&gt;A considerable majority of script developers have no computer science degree.  Many have no formal training in programming whatsoever -- their entire knowledge of programming languages comes from reading existing scripts and puzzling them out, maybe with a copy of &amp;quot;Learn VBScript in 21 Days&amp;quot; at hand.  They have no idea what &amp;quot;twos complement&amp;quot; means. Why would they?  It's an implementation detail that is usually abstracted away.&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275759" width="1" height="1"&gt;</description></item><item><title>re: Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#275566</link><pubDate>Mon, 06 Dec 2004 13:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275566</guid><dc:creator>Mat Hall</dc:creator><description>&amp;quot;You might wonder why it is that we use such a goofy way to represent negative integers...&amp;quot;&lt;br&gt;&lt;br&gt;Are there actually people reading this who are unaware of two's complement?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275566" width="1" height="1"&gt;</description></item><item><title>re: Integer Arithmetic in VBScript, Part Two</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/12/03/integer-arithmetic-in-vbscript-part-two.aspx#275401</link><pubDate>Mon, 06 Dec 2004 01:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275401</guid><dc:creator>Norman Diamond</dc:creator><description>&amp;gt; Indeed, I did discuss that last year, here.&lt;br&gt;&lt;br&gt;&amp;quot;here&amp;quot; says:&lt;br&gt;&lt;br&gt;&amp;gt; .Text - Application Error!&lt;br&gt;&amp;gt; Details&lt;br&gt;&amp;gt; NullReferenceException&lt;br&gt;&amp;gt; Object reference not set to an instance of an object.&lt;br&gt;&lt;br&gt;By the way, even though you showed (and I thank you) that in cases where programmers want unsigned longs in VB it really does turn out to be not so hard to produce printable strings showing their values in decimal, still don't you think that conversion to double precision floating is slightly sub-optimal?  VB has unsigned bytes; why haven't unsigned longs ever been added?&lt;br&gt;&lt;br&gt;&amp;gt; (The exact details of how zeros, infinities,&lt;br&gt;&amp;gt; nans and denormals work in floating point&lt;br&gt;&amp;gt; arithmetic is a subject for another day.)&lt;br&gt;&lt;br&gt;You misspelled &amp;quot;decade&amp;quot;.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275401" width="1" height="1"&gt;</description></item></channel></rss>