Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:blc:informatik:ffprg1-2019:basic-types [2019/02/10 09:29] Ivo Blöchliger [Zahloperationen] |
lehrkraefte:blc:informatik:ffprg1-2019:basic-types [2019/02/10 09:32] (current) Ivo Blöchliger |
||
---|---|---|---|
Line 18: | Line 18: | ||
====== Stringoperationen ====== | ====== Stringoperationen ====== | ||
Was bewirken folgende Operationen? | Was bewirken folgende Operationen? | ||
- | * String + String, z.B. '' | + | * String + String, z.B. < |
- | * String * int, z.B. '' | + | * String * int, z.B. < |
- | * String[int], | + | * String[int], |
- | * String[range], | + | * String[range], |
- | * String % list, z.B. "%d und %d gibt %d" % (3,5,8) | + | * String % list, z.B. < |
====== Zahloperationen ====== | ====== Zahloperationen ====== | ||
Line 31: | Line 31: | ||
* // Division, Resultat abgerundet auf nächst kleinere Ganzzahl. Ist nur vom Typ int, wenn beide Operanden vom Typ int. | * // Division, Resultat abgerundet auf nächst kleinere Ganzzahl. Ist nur vom Typ int, wenn beide Operanden vom Typ int. | ||
* < | * < | ||
- | * % Modulo-Operator, | + | * % Modulo-Operator, |
- | * mit '' | + | * mit < |
- | * '' | + | * < |
- | * '' | + | * < |
- | * '' | + | * < |
- | * '' | + | * < |