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.