Revision [16681]
This is an old revision of KeyPgUinteger made by DkLwikki on 2013-03-27 20:44:42.
UINTEGER
Standard data type: 32-bit or 64-bit unsigned, same size as KeyPgSizeof SizeOf(KeyPgAny Any KeyPgPtr Ptr)
Syntax:
Parameters:
bits
A numeric constant expression indicating the size in bits of unsigned integer desired. The values allowed are 8, 16, 32 or 64.
Description:
32-bit or 64-bit unsigned whole-number data type, depending on the platform.
If an explicit bit size is given, a data type is provided that can hold values from 0 up to (1ULL KeyPgOpShiftleft Shl (bits)) - 1.
If an explicit bit size is given, a data type is provided that can hold values from 0 up to (1ULL KeyPgOpShiftleft Shl (bits)) - 1.
Examples:
#if __FB_64BIT__
Dim x As UInteger = 0
Dim y As UInteger = &HFFFFFFFFFFFFFFFF
Print "UInteger Range = "; x; " to "; y
#else
Dim x As UInteger = 0
Dim y As UInteger = &HFFFFFFFF
Print "UInteger Range = "; x; " to "; y
#endif
Dim x As UInteger = 0
Dim y As UInteger = &HFFFFFFFFFFFFFFFF
Print "UInteger Range = "; x; " to "; y
#else
Dim x As UInteger = 0
Dim y As UInteger = &HFFFFFFFF
Print "UInteger Range = "; x; " to "; y
#endif
Dialect Differences:
- Not available in the CompilerOptlang -lang qb dialect unless referenced with the alias __Uinteger.
Differences from QB:
- New to FreeBASIC
See also:
Back to Standard Data Types