UInt Data Type

Holds unsigned integer values guarenteed to be at least 32 bits (4 bytes) and provides the best performance. On 32-bit architectures, values are in the range 0–4,294,967,295


UInt is short for "unsigned integer".

Default value
When you declare a variable of type UInt and leave it uninitialized,, its value defaults to zero (0).
Because UInt is an unsigned type, when you use the unary minus (-) operator on an expression of this type, the value is first converted to a Int64 or Int128, depending on the system's architecture, then negated.
The UInt data type widens to UInt64, UInt128, Real32, Real64, Real, or Real128 without any risk of overflow.
Type characters
UInt has no type characters.

Shared methods and properties

UInt.Bits As UInt
Returns the number of available bits. Typical values are 32 or 64.
UInt.Max As UInt
Returns the maximum value.
UInt.Min As UInt
Returns the minimum value. This is always zero (0).


Dim foo As UInt

See also