{"id":29,"date":"2013-10-24T15:14:37","date_gmt":"2013-10-24T15:14:37","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=29"},"modified":"2014-09-26T18:01:00","modified_gmt":"2014-09-26T18:01:00","slug":"variables-arduino-standard","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/programming\/memory\/variables-arduino-standard","title":{"rendered":"Variables &#8211; Arduino Standard"},"content":{"rendered":"<h4>\nArduino Standard Variable Types<br \/>\n<\/h4>\n<p>\nchar\n<\/p>\n<p style=\"margin-left: 40px;\">\n-128 to 127 (8-bit)\n<\/p>\n<p>\nbyte\n<\/p>\n<p style=\"margin-left: 40px;\">\n0 to 255 (8-bit)\n<\/p>\n<p>\nint\n<\/p>\n<p style=\"margin-left: 40px;\">\nATMega based boards (e.g. Arduino Uno)\n<\/p>\n<p style=\"margin-left: 80px;\">\n-32,768 to 32,767 (16-bit)\n<\/p>\n<p style=\"margin-left: 40px;\">\nArduino Due and other 32bit boards\n<\/p>\n<p style=\"margin-left: 80px;\">\n-2,147,483,648 to 2,147,483,647 (32-bit)\n<\/p>\n<p>\nunsigned int\n<\/p>\n<p style=\"margin-left: 40px;\">\nATMega based boards (e.g. Arduino Uno)\n<\/p>\n<p style=\"margin-left: 80px;\">\n0 to 65,535 (16-bit)\n<\/p>\n<p style=\"margin-left: 40px;\">\nArduino Due and other 32bit boards\n<\/p>\n<p style=\"margin-left: 80px;\">\n0 to 4,294,967,295 (32-bit)\n<\/p>\n<p>\nlong\n<\/p>\n<p style=\"margin-left: 40px;\">\n-2,147,483,648 to 2,147,483,647 (32-bit)\n<\/p>\n<p>\nunsigned long\n<\/p>\n<p style=\"margin-left: 40px;\">\n0 to 4,294,967,295 (32-bit)\n<\/p>\n<p>\nfloat\n<\/p>\n<p style=\"margin-left: 40px;\">\n-3.4028235E+38 to 3.4028235E+38<br \/>\n6-7 decimal digits of precision (total number of digits, not the number to the right of the decimal point)<br \/>\n32 bits (4 bytes)\n<\/p>\n<p>\ndouble\n<\/p>\n<p style=\"margin-left: 40px;\">\nATMega based boards (e.g. Arduino Uno)\n<\/p>\n<p style=\"margin-left: 80px;\">\nNo different to a float (this is non-standard &#8211; unlike other platforms where you can get more precision by using a double.\n<\/p>\n<p style=\"margin-left: 40px;\">\nArduino Due and other 32bit boards\n<\/p>\n<p style=\"margin-left: 40px;\">\n64 bits (8 bytes)\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino Standard Variable Types char -128 to 127 (8-bit) byte 0 to 255 (8-bit) int ATMega based boards (e.g. Arduino Uno) -32,768 to 32,767 (16-bit) Arduino Due and other 32bit boards -2,147,483,648 to 2,147,483,647 (32-bit) unsigned int ATMega based boards (e.g. Arduino Uno) 0 to 65,535 (16-bit) Arduino Due and other 32bit boards 0 to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-memory"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":3,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/29\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}