目次→言語リファレンス→変数とデータ型→
標準のデータ型→整数型→
UINTEGER←オリジナル・サイト
標準データ型:
32ビットか64ビットの符号無し。
SizeOf(Any Ptr) と同じサイズ。
Unsigned Integer に相当します。
構文:
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 になります。
例:
#include "string.bi"
#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
Print "UInteger Range = "; Format(x,"###,###"); " to "; Format(y,"###,###")
#endif
Sleep
方言差:
QBからの違い:
参照: