diff --git a/Language/Variables/Data Types/float.adoc b/Language/Variables/Data Types/float.adoc index 258605c..89bcd31 100644 --- a/Language/Variables/Data Types/float.adoc +++ b/Language/Variables/Data Types/float.adoc @@ -56,16 +56,16 @@ Wenn du mit floats rechnest, musst du ein Dezimalzeichen hinzufügen, andernfall [source,arduino] ---- - float myfloat; - float sensorCalbrate = 1.117; +float myfloat; +float sensorCalbrate = 1.117; - int x; - int y; - float z; +int x; +int y; +float z; - x = 1; - y = x / 2; // y enthält jetzt 0, ints können keine Brüche enthalten - z = (float)x / 2.0; // z enthält jetzt .5 (Du musst 2.0 verwenden, nicht 2) +x = 1; +y = x / 2; // y enthält jetzt 0, ints können keine Brüche enthalten +z = (float)x / 2.0; // z enthält jetzt .5 (Du musst 2.0 verwenden, nicht 2) ---- diff --git a/Language/Variables/Data Types/long.adoc b/Language/Variables/Data Types/long.adoc index eddf455..b9b9275 100644 --- a/Language/Variables/Data Types/long.adoc +++ b/Language/Variables/Data Types/long.adoc @@ -45,7 +45,7 @@ Siehe auch die link:../../constants/integerconstants[Ganzzahlkonstanten]-Seite f [source,arduino] ---- - long speedOfLight = 186000L; // Auf der Ganzzahlkonstanten-Seite findest du Erläuterungen zu dem 'L'. +long speedOfLight = 186000L; // Auf der Ganzzahlkonstanten-Seite findest du Erläuterungen zu dem 'L'. ---- -- diff --git a/Language/Variables/Data Types/unsignedInt.adoc b/Language/Variables/Data Types/unsignedInt.adoc index f3190b7..d5f967e 100644 --- a/Language/Variables/Data Types/unsignedInt.adoc +++ b/Language/Variables/Data Types/unsignedInt.adoc @@ -46,7 +46,7 @@ mit dem (https://de.wikipedia.org/wiki/Zweierkomplement[Zweierkomplement]). [source,arduino] ---- - unsigned int ledPin = 13; +unsigned int ledPin = 13; ---- [%hardbreaks]