Long

From Microduino Wiki
Revision as of 07:46, 18 August 2016 by Fengfeng (talk) (Created page with "long(long int)<br> *'''Description'''<br> Long integer variable is the extension of digital storage, and it can store 32-bit(4 bytes)variable, from -2,147,483,648 to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

long(long int)

  • Description

Long integer variable is the extension of digital storage, and it can store 32-bit(4 bytes)variable, from -2,147,483,648 to 2,147,483,647.

  • Example
long speedOfLight = 186000L; //Refer to the introduction of int constant ‘L’.
  • Syntax
long var = val;

var - long int variable name
val - the value to be assigned to the variable

[Return to Arduino Syntax Manual]