Que Clng, Clng.
July 27, 2007 12:32 PM
Subscribe
In VBScript, why is Clng(True) equal to -1?
I am looking for preferably some current or ex-Microsoftie who might be able to give me the real deal on why this decision was made internally or otherwise, some sane, valid reasoning would do nicely. In all that is logical, it would really seem that Clng(True) should equal 1. Especially since Clng(False) is equal to 0. My brain asplode.
posted by zackola to technology (5 comments total)
1 user marked this as a favorite
I have heard it was for backwards compatibility with antediluvian versions of BASIC that Gates himself wrote.
posted by mrbugsentry at 12:40 PM on July 27, 2007