unsigned long long
描述
unsigned long long (無號超長整數) 是一個延伸儲存空間的變數型別,可以儲存 64bits (8 bytes) 大小的整數。不像 long long (有號超長整數),它不儲存負數,所以儲存範圍從 0 到 18,446,744,073,709,551,615 (2^64 – 1)。
如果無號超長整數要和整數做數學運算,必須在整數常數最後面加上 ULL,強制指定此整數為無號超長整數。
範例
unsigned long long speedOfRobot = 186000000ULL;
語法
unsigned long long var = val;
var
– unsigned long long 型態的變數名稱
val
– 指派給變數的值
See also
- byte
- int
- unsigned int
- long long
- Variable Declaration
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.