
04-26-2006, 2:37 PM
|
 |
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
|
|
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
|
|
When numeric data types are converted to Boolean values, 0 becomes False and all other values become True. When Boolean values are converted to numeric types, False becomes 0 and True becomes -1.
As for why it takes 2 bytes.. why does other languages use a whole byte when really only a bit is necessary to tell 0/1 true/false on/off etc ? It is probably some inherent thing.
|