Long

From Microduino Wiki
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]