Skip to content

Commit 449988e

Browse files
authored
Update long.adoc
Implemented changes from Issue 766
1 parent b496b85 commit 449988e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Language/Variables/Data Types/long.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ subCategories: [ "Data Types" ]
1919
=== Description
2020
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.
2121

22-
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 link:../../constants/integerconstants[Integer Constants] page for details.
22+
If doing math with integers at least one of the values must be of type long, either an integer constant followed by an L or a variable of type long, forcing it to be a long. See the link:../../constants/integerconstants[Integer Constants] page for details.
2323
[%hardbreaks]
2424

2525
[float]
@@ -28,7 +28,7 @@ If doing math with integers, at least one of the numbers must be followed by an
2828

2929

3030
[float]
31-
=== Parameters
31+
=== Description
3232
`var`: variable name. +
3333
`val`: the value assigned to the variable.
3434

@@ -49,7 +49,7 @@ If doing math with integers, at least one of the numbers must be followed by an
4949

5050
[source,arduino]
5151
----
52-
long speedOfLight = 186000L; // see the Integer Constants page for explanation of the 'L'
52+
long speedOfLight_km_s = 300000L; // see the Integer Constants page for explanation of the 'L'
5353
----
5454

5555
--

0 commit comments

Comments
 (0)