[Data Types]
描述
Unsigned long-long variables are extended size variables for number storage, and store 64 bits (8 bytes). Unlike standard long-longs, unsigned long-longs won’t store negative numbers, making their range from 0 to 18,446,744,073,709,551,615 (2^64 – 1).If doing math with integers, at least one of the numbers must be followed by an ULL, forcing it to be an unsigned long-long.
範例程式碼
unsigned long long speedOfRobot = 186000000ULL;
語法
unsigned long long var = val;
var
– your unsigned long-long variable nameval
– the value you assign to that variable
參考
- [程式語法] byte
- [程式語法] int
- [程式語法] unsigned int
- [程式語法] long long
- [程式語法] Variable Declaration
語法參考主頁面
86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。