Skip to content

Use Unix EOL in all files #553

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
Jun 1, 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
148 changes: 74 additions & 74 deletions Language/Functions/Characters/isUpperCase.adoc
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
---
title: "isUpperCase()"
categories: [ "Functions" ]
subCategories: [ "Characters" ]
---
= isUpperCase(thisChar)
// OVERVIEW SECTION STARTS
[#overview]
--
[float]
=== Description
Analyse if a char is upper case (that is, a letter in upper case). Returns true if thisChar is upper case.
[%hardbreaks]
[float]
=== Syntax
`isUpperCase(thisChar)`
[float]
=== Parameters
`thisChar`: variable. Allowed data types: `char`.
[float]
=== Returns
`true`: if thisChar is upper case.
--
// OVERVIEW SECTION ENDS
// HOW TO USE SECTION STARTS
[#howtouse]
--
[float]
=== Example Code
[source,arduino]
----
if (isUpperCase(myChar)) { // tests if myChar is an upper case letter
Serial.println("The character is upper case");
}
else {
Serial.println("The character is not upper case");
}
----
--
// HOW TO USE SECTION ENDS
// SEE ALSO SECTION
[#see_also]
--
[float]
=== See also
[role="language"]
* #LANGUAGE# link:../../../variables/data-types/char[char]
* #LANGUAGE# link:../../../structure/control-structure/if[if (conditional operators)]
* #LANGUAGE# link:../../../structure/control-structure/while[while (conditional operators)]
* #LANGUAGE# link:../../communication/serial/read[read()]
--
// SEE ALSO SECTION ENDS
---
title: "isUpperCase()"
categories: [ "Functions" ]
subCategories: [ "Characters" ]
---

= isUpperCase(thisChar)


// OVERVIEW SECTION STARTS
[#overview]
--

[float]
=== Description
Analyse if a char is upper case (that is, a letter in upper case). Returns true if thisChar is upper case.
[%hardbreaks]


[float]
=== Syntax
`isUpperCase(thisChar)`


[float]
=== Parameters
`thisChar`: variable. Allowed data types: `char`.


[float]
=== Returns
`true`: if thisChar is upper case.

--
// OVERVIEW SECTION ENDS



// HOW TO USE SECTION STARTS
[#howtouse]
--

[float]
=== Example Code

[source,arduino]
----
if (isUpperCase(myChar)) { // tests if myChar is an upper case letter
Serial.println("The character is upper case");
}
else {
Serial.println("The character is not upper case");
}
----

--
// HOW TO USE SECTION ENDS


// SEE ALSO SECTION
[#see_also]
--

[float]
=== See also

[role="language"]
* #LANGUAGE# link:../../../variables/data-types/char[char]
* #LANGUAGE# link:../../../structure/control-structure/if[if (conditional operators)]
* #LANGUAGE# link:../../../structure/control-structure/while[while (conditional operators)]
* #LANGUAGE# link:../../communication/serial/read[read()]

--
// SEE ALSO SECTION ENDS
178 changes: 89 additions & 89 deletions Language/Structure/Arithmetic Operators/addition.adoc
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
---
title: "+"
title_expanded: "addition"
categories: [ "Structure" ]
subCategories: [ "Arithmetic Operators" ]
---
= + Addition
// OVERVIEW SECTION STARTS
[#overview]
--
[float]
=== Description
*Addition* is one of the four primary arithmetic operations. The operator `+` (plus) operates on two operands to produce the sum.
[%hardbreaks]
[float]
=== Syntax
`sum = operand1 + operand2;`
[float]
=== Parameters
`sum`: variable. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
`operand1`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
`operand2`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`.
--
// OVERVIEW SECTION ENDS
// HOW TO USE SECTION STARTS
[#howtouse]
--
[float]
=== Example Code
[source,arduino]
----
int a = 5;
int b = 10;
int c = 0;
c = a + b; // the variable 'c' gets a value of 15 after this statement is executed
----
[%hardbreaks]
[float]
=== Notes and Warnings
1. The addition operation can overflow if the result is larger than that which can be stored in the data type (e.g. adding 1 to an integer with the value 32,767 gives -32,768).
2. If one of the numbers (operands) are of the type float or of type double, floating point math will be used for the calculation.
3. If the operands are of float / double data type and the variable that stores the sum is an integer, then only the integral part is stored and the fractional part of the number is lost.
[source,arduino]
----
float a = 5.5;
float b = 6.6;
int c = 0;
c = a + b; // the variable 'c' stores a value of 12 only as opposed to the expected sum of 12.1
----
[%hardbreaks]
--
// HOW TO USE SECTION ENDS
// SEE ALSO SECTION
[#see_also]
--
[float]
=== See also
[role="language"]
--
// SEE ALSO SECTION ENDS
---
title: "+"
title_expanded: "addition"
categories: [ "Structure" ]
subCategories: [ "Arithmetic Operators" ]
---





= + Addition


// OVERVIEW SECTION STARTS
[#overview]
--

[float]
=== Description
*Addition* is one of the four primary arithmetic operations. The operator `+` (plus) operates on two operands to produce the sum.
[%hardbreaks]


[float]
=== Syntax
`sum = operand1 + operand2;`

[float]
=== Parameters
`sum`: variable. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
`operand1`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
`operand2`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`.

--
// OVERVIEW SECTION ENDS




// HOW TO USE SECTION STARTS
[#howtouse]
--

[float]
=== Example Code

[source,arduino]
----
int a = 5;
int b = 10;
int c = 0;
c = a + b; // the variable 'c' gets a value of 15 after this statement is executed
----
[%hardbreaks]

[float]
=== Notes and Warnings
1. The addition operation can overflow if the result is larger than that which can be stored in the data type (e.g. adding 1 to an integer with the value 32,767 gives -32,768).

2. If one of the numbers (operands) are of the type float or of type double, floating point math will be used for the calculation.

3. If the operands are of float / double data type and the variable that stores the sum is an integer, then only the integral part is stored and the fractional part of the number is lost.

[source,arduino]
----
float a = 5.5;
float b = 6.6;
int c = 0;
c = a + b; // the variable 'c' stores a value of 12 only as opposed to the expected sum of 12.1
----
[%hardbreaks]
--
// HOW TO USE SECTION ENDS




// SEE ALSO SECTION
[#see_also]
--

[float]
=== See also

[role="language"]

--
// SEE ALSO SECTION ENDS
Loading