UINTEGER
- 来源: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgUinteger
- 最后更新: 2021-12-13
标准数据类型:32 位或 64 位无符号,与 SizeOf(Any Ptr) 大小相同。
等价于 Unsigned Integer。
语法
vb
dim variable as Uinteger
dim variable as Uinteger`<bits>`参数
bits
指示所需无符号整数位大小的数值常量表达式。允许的值为 8、16、32 或 64。
说明
32 位或 64 位无符号整数数据类型,取决于平台。
如果给出了明确的位大小,则提供一个数据类型,可以保存从 0 到 (1ULL Shl (bits)) - 1 的值。所选数据类型为:UInteger<8> 对应 UByte,UInteger<16> 对应 UShort,UInteger<32> 对应 ULong,UInteger<64> 对应 ULongInt。
示例
start GeSHi
vb
#ifdef __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
#endifend GeSHi
方言差异
- 在 -lang qb 方言中不可用,除非使用别名
__Uinteger引用。
与 QB 的区别
- FreeBASIC 新增
另请参阅
IntegerUnsignedCuint变量类型概览、限制和后缀表
返回 目录