Characteristics of Great Engineering (Hardware, Software and Design) |
Arduino | AVR-libc (preferred) | Bytes | Range | Comments |
void | void | 0 | none | |
bool, boolean | bool | 1 | false, true | |
char | int8_t | 1 | [-128,127] | ASCII Character or Signed (2's complement) 8-bit integer |
byte | uint8_t | 1 | [0,255] | |
int, short | int16_t | 2 | [-32768,32767] | |
unsigned int | uint16_t | 2 | [0..65535] | |
long | int32_t | 4 | [~2^31-1, 2^31] | |
unsigned long | uint32_t | 4 | [0,2^32-1] | |
float | float | 4 | [~-3.4×1038,~3.4×1038] | |
double | double | 4 | Same as float on the Arduino platform |