Revision 1 of 2, by Trev on 2-26-2020. The page as it is now.
Shl/de
Zurück zu den reservierten Wörtern.
Das reservierte Wort <b>shl</b> gehört zu den reservierten Wörtern.
Das reservierte Wort <b>shl</b> gehört zu den Operatoren.
Das reservierte Wort <b>shl</b> arbeitet wie ein Multiplikator.
Das reservierte Wort <b>shl</b> kann nur auf Ganzzahlen angewendet werden.
Das Ergebnis ist eine Ganzzahl.
Beispiele:
var
intA: integer;
intB: integer;
begin
...
intA := 2;
intB := intA shl 1; // Ergebnis: 4 entspricht intA * 2
intB := intA shl 2; // Ergebnis: 8 entspricht (intA * 2 * 2) oder (intA * 4)
intB := intA shl 3; // Ergebnis: 16 entspricht (intA * 2 * 2 * 2) oder (intA * 8)
...
end;Siehe auch: shr
From the Free Pascal wiki, page "Shl/de", as it stood on 2020-02-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
