Skip to content

Commit 457f659

Browse files
committed
Fixes in the data type pages
1 parent 9585b0b commit 457f659

18 files changed

+35
-91
lines changed

Language/Variables/Data Types/array.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= Arrays
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--

Language/Variables/Data Types/bool.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= bool
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--

Language/Variables/Data Types/boolean.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= boolean
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--

Language/Variables/Data Types/byte.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= byte
128

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

5752
--
58-
// SEE ALSO SECTION ENDS
53+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/char.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= char
128

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

7368
--
74-
// SEE ALSO SECTION ENDS
69+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/double.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= double
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--
@@ -63,4 +58,4 @@ Users who borrow code from other sources that includes double variables may wish
6358
=== See also
6459

6560
--
66-
// SEE ALSO SECTION ENDS
61+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/float.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ If doing math with floats, you need to add a decimal point, otherwise it will be
3232
=== Syntax
3333
`float var=val;`
3434

35-
`var` - your float variable name
36-
`val` - the value you assign to that variable
35+
[float]
36+
=== Parameters
37+
`var`: variable name +
38+
`val`: the value you assign to that variable
3739
[%hardbreaks]
3840

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

8284
--
83-
// SEE ALSO SECTION ENDS
85+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/int.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ The Arduino takes care of dealing with negative numbers for you, so that arithme
2828
=== Syntax
2929
`int var = val;`
3030

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

3436
--
3537
// OVERVIEW SECTION ENDS

Language/Variables/Data Types/long.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ If doing math with integers, at least one of the numbers must be followed by an
2727

2828
`long var = val;`
2929

30-
`var` - the long variable name
31-
`val` - the value assigned to the variable
30+
[float]
31+
=== Parameters
32+
`var`: variable name +
33+
`val`: the value assigned to the variable
34+
3235
[%hardbreaks]
3336
--
3437
// OVERVIEW SECTION ENDS

Language/Variables/Data Types/short.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ On all Arduinos (ATMega and ARM based) a short stores a 16-bit (2-byte) value. T
2626
=== Syntax
2727
`short var = val;`
2828

29-
`var` - your short variable name
30-
`val` - the value you assign to that variable
29+
[float]
30+
=== Parameters
31+
`var`: variable name +
32+
`val`: the value you assign to that variable
33+
3134
--
3235
// OVERVIEW SECTION ENDS
3336

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

6568
--
66-
// SEE ALSO SECTION ENDS
69+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/size_t.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= size_t
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--

Language/Variables/Data Types/string.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= string
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--

Language/Variables/Data Types/stringObject.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= String()
128

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

7065
[float]

Language/Variables/Data Types/unsignedChar.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= unsigned char
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--
@@ -70,4 +65,4 @@ unsigned char myChar = 240;
7065
* #LANGUAGE# link:../../../functions/communication/serial/println[Serial.println]
7166

7267
--
73-
// SEE ALSO SECTION ENDS
68+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/unsignedInt.adoc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= unsigned int
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--
@@ -30,9 +25,11 @@ The difference between unsigned ints and (signed) ints, lies in the way the high
3025
[float]
3126
=== Syntax
3227
`unsigned int var = val;`
33-
`var` - your unsigned int variable name
34-
`val` - the value you assign to that variable
3528

29+
[float]
30+
=== Parameters
31+
`var`: variable name +
32+
`val`: the value you assign to that variable
3633

3734
// HOW TO USE SECTION STARTS
3835
[#howtouse]

Language/Variables/Data Types/unsignedLong.adoc

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= unsigned long
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--
@@ -25,8 +20,10 @@ Unsigned long variables are extended size variables for number storage, and stor
2520

2621
`unsigned long var = val;`
2722

28-
`var` - your long variable name
29-
`val` - the value you assign to that variable
23+
[float]
24+
=== Parameters
25+
`var`: variable name +
26+
`val`: the value you assign to that variable
3027
[%hardbreaks]
3128

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

8178
--
82-
// SEE ALSO SECTION ENDS
79+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/void.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= void
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--
@@ -67,4 +62,4 @@ void loop()
6762
* #LANGUAGE# link:../../constants/integerconstants[Integer Constants]
6863

6964
--
70-
// SEE ALSO SECTION ENDS
65+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/word.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ categories: [ "Variables" ]
44
subCategories: [ "Data Types" ]
55
---
66

7-
8-
9-
10-
117
= word
128

13-
149
// OVERVIEW SECTION STARTS
1510
[#overview]
1611
--

0 commit comments

Comments
 (0)