Reference.Long History

Hide minor edits - Show changes to markup

November 04, 2013, at 08:33 AM by Scott Fitzgerald -
Changed line 12 from:

[@ long speedOfLight = 186000L; // see Integer Constants for explanation of the 'L'

to:

[@ long speedOfLight = 186000L; // see the Integer Constants page for explanation of the 'L'

November 04, 2013, at 08:33 AM by Scott Fitzgerald -
Added lines 7-8:

If doing math with integers, at least one of the numbers must be followed by an L, forcing it to be a long. See the Integer Constants page for details.

Changed line 12 from:

[@ long speedOfLight = 186000L; // see Integer Constants for explanation of the 'L'

to:

[@ long speedOfLight = 186000L; // see Integer Constants for explanation of the 'L'

June 25, 2009, at 01:04 PM by Paul Badger -
Changed lines 28-29 from:
to:
  • Variable Declaration

December 29, 2008, at 12:48 AM by Paul Badger -
Changed lines 27-28 from:
to:
September 08, 2008, at 05:08 AM by Paul Badger -
Changed lines 17-20 from:
  • var - your long variable name
  • val - the value you assign to that variable

to:
  • var - the long variable name
  • val - the value assigned to the variable

September 08, 2008, at 05:00 AM by Paul Badger -
September 08, 2008, at 05:00 AM by Paul Badger -
Changed line 10 from:

[@ long speedOfLight = 186000L; // see Integer Constants

to:

[@ long speedOfLight = 186000L; // see Integer Constants for explanation of the 'L'

September 08, 2008, at 04:59 AM by Paul Badger -
Changed line 10 from:

[@long speedOfLight = 186000L; // see Integer Constants

to:

[@ long speedOfLight = 186000L; // see Integer Constants

September 08, 2008, at 04:59 AM by Paul Badger -
Changed lines 9-22 from:

[@ long time;

void setup(){

  Serial.begin(9600);

} void loop(){

  Serial.print("Time: ");
  time = millis();
  //prints time since program started
  Serial.println(time);
  // wait a second so as not to send massive amounts of data
  delay(1000);

}

to:

[@long speedOfLight = 186000L; // see Integer Constants

Added line 12:
April 17, 2007, at 12:06 AM by David A. Mellis -
Changed lines 24-25 from:

Parameters

to:

Syntax

Changed lines 36-37 from:
to:
April 16, 2007, at 11:17 PM by Paul Badger -
Deleted lines 37-38:
April 16, 2007, at 08:53 AM by David A. Mellis -
Changed line 34 from:
  • [[byte]
to:
April 16, 2007, at 08:53 AM by David A. Mellis -
Changed lines 32-35 from:

to:

See Also

April 16, 2007, at 08:07 AM by Paul Badger -
Changed lines 5-6 from:

Long variables are extended size varialbes for number storage, and store 32 bits, from -2,147,483,648 to 2,147,483,647.

to:

Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647.

March 31, 2006, at 10:58 PM by Jeff Gray -
Changed line 28 from:
  • var - your int variable name
to:
  • var - your long variable name
March 31, 2006, at 10:50 PM by Jeff Gray -
Changed lines 1-2 from:

long

to:

long

March 31, 2006, at 10:50 PM by Jeff Gray -
Deleted line 23:
March 31, 2006, at 10:49 PM by Jeff Gray -
Changed lines 9-10 from:
    int ledPin = 13;
to:
long time;

void setup(){
  Serial.begin(9600);
}
void loop(){
  Serial.print("Time: ");
  time = millis();
  //prints time since program started
  Serial.println(time);
  // wait a second so as not to send massive amounts of data
  delay(1000);
}
March 31, 2006, at 10:48 PM by Jeff Gray -
Changed lines 1-2 from:

32 bits, from -2,147,483,648 to 2,147,483,647.

to:

long

Description

Long variables are extended size varialbes for number storage, and store 32 bits, from -2,147,483,648 to 2,147,483,647.

Example

    int ledPin = 13;

Parameters

    long var = val;

  • var - your int variable name
  • val - the value you assign to that variable

Reference Home

March 31, 2006, at 10:46 PM by Jeff Gray -
Added lines 1-2:

32 bits, from -2,147,483,648 to 2,147,483,647.

Share