Description Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647. If doing math with integers, at least one of the numbers must be followed by an L, forcing it to be a long. See the Integer Constants page for details. Example long speedOfLight = 186000L; […]
Description A word stores a 16-bit unsigned number, from 0 to 65535. Same as an unsigned short. Example word w = 10000; See also - byte - word() 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 […]
Description On the 86Duino, unsigned ints (unsigned integers) are the same as ints in that they store a 4 byte (32-bit) value. Instead of storing negative numbers however they only store positive values, yielding a useful range of 0 to 4,294,967,295 (2^32 – 1). The difference between unsigned ints and (signed) ints, lies in the […]
Description Integers are your primary data-type for number storage. On the 86Duino, an int stores a 32-bit (4-byte) value. This yields a range of -2,147,483,648 to 2,147,483,647 (minimum value of -2^31 and a maximum value of (2^31) – 1). int‘s store negative numbers with a technique called 2’s complement math. The highest bit, sometimes referred […]
Description A byte stores an 8-bit unsigned number, from 0 to 255. Example byte b = B10010; // "B" is the binary formatter (B10010 = 18 decimal) See also - word - byte() - Variable Declaration Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]
Description An unsigned data type that occupies 1 byte of memory. Same as the byte datatype. The unsigned char datatype encodes numbers from 0 to 255. For consistency of 86Duino programming style, the byte data type is to be preferred. Example unsigned char myChar = 240; See also - byte - int - array - […]
Description A data type that takes up 1 byte of memory that stores a character value. Character literals are written in single quotes, like this: ‘A’ (for multiple characters – strings – use double quotes: “ABC”). Characters are stored as numbers however. You can see the specific encoding in the ASCII chart. This means that […]
A boolean holds one of two values, true or false. (Each boolean variable occupies one byte of memory.) Example See also - constants - boolean operators - 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. […]
The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called. Example See also - function declaration Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a […]
Similar to integer constants, floating point constants are used to make code more readable. Floating point constants are swapped at compile time for the value to which the expression evaluates. Examples: n = .005; Floating point constants can also be expressed in a variety of scientific notation. ‘E’ and ‘e’ are both accepted as valid […]