Skip to content

Fixes in the data type pages #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Language/Variables/Data Types/array.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= Arrays


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down
5 changes: 0 additions & 5 deletions Language/Variables/Data Types/bool.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= bool


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down
5 changes: 0 additions & 5 deletions Language/Variables/Data Types/boolean.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= boolean


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down
7 changes: 1 addition & 6 deletions Language/Variables/Data Types/byte.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= byte


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down Expand Up @@ -55,4 +50,4 @@ A byte stores an 8-bit unsigned number, from 0 to 255.
* #LANGUAGE# link:../../conversion/bytecast[byte()]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
7 changes: 1 addition & 6 deletions Language/Variables/Data Types/char.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= char


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down Expand Up @@ -71,4 +66,4 @@ The char datatype is a signed type, meaning that it encodes numbers from -128 to
* #LANGUAGE# link:../../../functions/communication/serial/println[Serial.println]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
7 changes: 1 addition & 6 deletions Language/Variables/Data Types/double.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= double


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down Expand Up @@ -63,4 +58,4 @@ Users who borrow code from other sources that includes double variables may wish
=== See also

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
8 changes: 5 additions & 3 deletions Language/Variables/Data Types/float.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ If doing math with floats, you need to add a decimal point, otherwise it will be
=== Syntax
`float var=val;`

`var` - your float variable name
`val` - the value you assign to that variable
[float]
=== Parameters
`var`: variable name +
`val`: the value you assign to that variable
[%hardbreaks]

--
Expand Down Expand Up @@ -80,4 +82,4 @@ If doing math with floats, you need to add a decimal point, otherwise it will be
[role="language"]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
6 changes: 4 additions & 2 deletions Language/Variables/Data Types/int.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ The Arduino takes care of dealing with negative numbers for you, so that arithme
=== Syntax
`int var = val;`

`var` - your int variable name +
`val` - the value you assign to that variable
[float]
=== Parameters
`var`: variable name +
`val`: the value you assign to that variable

--
// OVERVIEW SECTION ENDS
Expand Down
7 changes: 5 additions & 2 deletions Language/Variables/Data Types/long.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ If doing math with integers, at least one of the numbers must be followed by an

`long var = val;`

`var` - the long variable name
`val` - the value assigned to the variable
[float]
=== Parameters
`var`: variable name +
`val`: the value assigned to the variable

[%hardbreaks]
--
// OVERVIEW SECTION ENDS
Expand Down
9 changes: 6 additions & 3 deletions Language/Variables/Data Types/short.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ On all Arduinos (ATMega and ARM based) a short stores a 16-bit (2-byte) value. T
=== Syntax
`short var = val;`

`var` - your short variable name
`val` - the value you assign to that variable
[float]
=== Parameters
`var`: variable name +
`val`: the value you assign to that variable

--
// OVERVIEW SECTION ENDS

Expand Down Expand Up @@ -63,4 +66,4 @@ On all Arduinos (ATMega and ARM based) a short stores a 16-bit (2-byte) value. T
* #LANGUAGE# link:../../constants/integerconstants[Integer Constants]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
5 changes: 0 additions & 5 deletions Language/Variables/Data Types/size_t.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= size_t


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down
5 changes: 0 additions & 5 deletions Language/Variables/Data Types/string.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= string


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down
7 changes: 1 addition & 6 deletions Language/Variables/Data Types/stringObject.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= String()


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down Expand Up @@ -64,7 +59,7 @@ String(val, decimalPlaces)
[float]
=== Parameters
`val`: a variable to format as a String - *Allowed data types:* string, char, byte, int, long, unsigned int, unsigned long, float, double +
`base` (optional): the base in which to format an integral value
`base` (optional): the base in which to format an integral value +
`decimalPlaces` (*only if val is float or double*): the desired decimal places

[float]
Expand Down
7 changes: 1 addition & 6 deletions Language/Variables/Data Types/unsignedChar.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= unsigned char


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down Expand Up @@ -70,4 +65,4 @@ unsigned char myChar = 240;
* #LANGUAGE# link:../../../functions/communication/serial/println[Serial.println]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
11 changes: 4 additions & 7 deletions Language/Variables/Data Types/unsignedInt.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= unsigned int


// OVERVIEW SECTION STARTS
[#overview]
--
Expand All @@ -30,9 +25,11 @@ The difference between unsigned ints and (signed) ints, lies in the way the high
[float]
=== Syntax
`unsigned int var = val;`
`var` - your unsigned int variable name
`val` - the value you assign to that variable

[float]
=== Parameters
`var`: variable name +
`val`: the value you assign to that variable

// HOW TO USE SECTION STARTS
[#howtouse]
Expand Down
13 changes: 5 additions & 8 deletions Language/Variables/Data Types/unsignedLong.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= unsigned long


// OVERVIEW SECTION STARTS
[#overview]
--
Expand All @@ -25,8 +20,10 @@ Unsigned long variables are extended size variables for number storage, and stor

`unsigned long var = val;`

`var` - your long variable name
`val` - the value you assign to that variable
[float]
=== Parameters
`var`: variable name +
`val`: the value you assign to that variable
[%hardbreaks]

--
Expand Down Expand Up @@ -79,4 +76,4 @@ void loop()
* #LANGUAGE# link:../../constants/integerconstants[Integer Constants]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
7 changes: 1 addition & 6 deletions Language/Variables/Data Types/void.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= void


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down Expand Up @@ -67,4 +62,4 @@ void loop()
* #LANGUAGE# link:../../constants/integerconstants[Integer Constants]

--
// SEE ALSO SECTION ENDS
// SEE ALSO SECTION ENDS
5 changes: 0 additions & 5 deletions Language/Variables/Data Types/word.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ categories: [ "Variables" ]
subCategories: [ "Data Types" ]
---





= word


// OVERVIEW SECTION STARTS
[#overview]
--
Expand Down