Shl/de
Deutsch · English · Français · Suomi · Русский
Zurück zu den reservierten Wörtern.
Das reservierte Wort shl gehört zu den reservierten Wörtern.
Das reservierte Wort shl gehört zu den Operatoren.
Das reservierte Wort shl arbeitet wie ein Multiplikator.
Das reservierte Wort shl 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.