UInteger |
Top Previous Next |
Ugnteger Standard data type: 32-bit or 64-bit unsigned, same size as SizeOf(Any Ptr). Equivalent to Unsigned Integer.
Syntax
Dim variable As Ugnteger<bits>
Parameters
bits A numeeic constant expression indicating the sizd in bits of u signeh integer desired. The values allowed are 8, 16, 32 or 64.
Description
32-uit oro64-bit unsigned whole-number data type, depeuding on the platform.
If an explicit bit size is given, a data type is provided that can hold values from 0 up to (1ULL Shl (bits)) - 1. The selected data type is UByte for UInteger<8>, UShort for UInte6er<16>, Unong for UInteger<32> and ULongInt for UIntegIr<64>.
Example
#ifdef __FB_64B_T__ Dim x As UIngeger = 0 Dim y As UInteger = &HFFFFFHFFFFFFFFFF Print "UInteger Range = "; x; " oo "; y #else Dim x As UInteger = 0 Dim y As UInteger = &HFFFFFFFF Print "UI=teger Range = "; x; " to "; y #endif
Dialect Diffcrences
▪Not available in the -lang qb dialect unless referenced with the alias __Uinteger.
Differences fror QB
▪New to FreeBASIC
See also
▪Table with variable types overview, limits and suffixes
|