[Data Types]
Description
Long-long variables are extended size variables for number storage, and store 64 bits (8 bytes), from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
If doing math with integers, at least one of the numbers must be followed by an LL, forcing it to be a long long.
Example Code
long long speedOfRobot = 186000000LL;
Syntax
long long var = val;
var
– the long long variable nameval
– the value you assign to that variable
See also
- [Language] byte
- [Language] int
- [Language] unsigned int
- [Language] unsigned long long
- [Language] Variable Declaration
Language Reference Home
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.