Tuesday, September 4, 2012

Arduino: the size of data types

int: -32,768 to 32,767(minimum value of -2^15 and a maximum value of (2^15) - 1)
unsigned int 0 to 65,535 ((2^16) - 1)
long: -2,147,483,648 to 2,147,483,647 (32bit)
float: 32bits
double: 32bits (The same as float)