Arduino Variable Sizes

Watch Window

char / signed char / int8_t
signed 8 bits (1 byte)
-128 to 127

byte / unsigned char / uint8_t
unsigned 8 bits (1 byte)
0 to 255 (2^8 – 1)

int / short / int16_t
signed 16 bits (2 bytes)
-32,768 to 32,767

word / unsigned int / uint16_t
unsigned 16 bits (2 bytes)
0 to 65,535 (2^16 – 1)

long / int32_t
signed 32 bits (4 bytes)
-2,147,483,648 to 2,147,483,647

dword / unsigned long / uint32_t
unsigned 32 bits (4 bytes)
0 to 4,294,967,295 (2^32 – 1)

float / double
32 bits (4 bytes)
-3.4028235E+38 to 3.4028235E+38
6 to 7 decimal digits of precision
(arduino double is the same as float)

Advertisements

About Jim Eli

µC experimenter
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s