8.2 Boolean Conversions
The document is archived and information here might be outdated

8.2 Boolean Conversions

Visual Studio .NET 2003

Although Boolean is not a numeric type, it does have conversions to and from the numeric types as if it were an enumerated type. The literal True converts to the literal 255 for Byte and to the expression -1 for Short, Integer, Long, Decimal, Single, and Double. The literal False converts to the literal 0. A zero numeric value converts to the literal False. All other numeric values convert to the literal True.

See Also

8.5 Array Covariance | 8.8 Widening Conversions | 8.9 Narrowing Conversions | 8. Conversions | Conversion Summary (Visual Basic Language Reference) | Implicit and Explicit Conversions (Visual Basic Language Concepts)

© 2016 Microsoft