long long
描述
Long-long (超長整數) 是一個延伸儲存空間的變數型別,它可以儲存 64bits (8 bytes) 大小的整數,從 –9,223,372,036,854,775,808 到 9,223,372,036,854,775,807。
如果超長整數要和整數做數學運算,必須在整數常數最後面加上 LL,強制指定此整數為超長整數。
範例
long long speedOfRobot = 186000000LL;
語法
long long var = val;
var
– long long 型別的變數名稱
val
– 指派給變數的值
See also
- byte
- int
- unsigned int
- unsigned 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.