coord-transf.2d elements3d elementsnon geo scriptsfunctionscontrol statem.attributesvariousaddons
placeholdersexpressionsoperatorsstatus codesbuffer storageglobal param.environ. values
arithmetik relations boolean
Name
ARITHMETIK
Aufklappen Description
^ oder ** (Priorität: 2)
Potenz. Typ: Numerisch.
  Beispiel:
  a=3^2
  b=4**2
  c=a^2 + b**2 !=337


* (Priorität: 3)
Multiplikation. Typ: Numerisch.
  Beispiel:
  a=3*2
  b=4*2
  c=a*b !=48


/ (Priorität: 3)
Division. Typ: Numerisch; Ergebnistyp: real.
  Beispiel:
  a=3/2
  b=4/2
  c=a/b !=0.75


MOD oder % (Priorität: 3)
Modulo. Berechnet den ganzzahligen Rest aus einer Division mit Werten gleichen Typs. Typ: Numerisch.
Es gilt:   a MOD b = a - b * INT (a/b)
  Beispiel:
  a=3 MOD 2 !=1
  b=4 % 2 !=0


+ (Priorität: 4)
Addition. Typ Numerisch.
  Beispiel:
  a=3+2
  b=4+2
  c=a+b !=11


+ (Priorität: 4)
Verknüpfung zweier Texte. Typ string.
  Beispiel:
  text1="Hal" + "lo"
  text2="We" + "lt"
  text3=text1 + " " + text2 + "!" !="Hallo Welt!"


- (Priorität: 4)
Subtraktion. Typ Numerisch.
  Beispiel:
  a=3-2
  b=4-2
  c=a-b !=-1
Aufklappen References
GDL-Handbuch 4.5 (DE) p. 93
GDL-Handbuch 5.0 (DE) p. 125
GDL-Handbuch 6.0 (DE) p. 174
GDL-Handbuch 6.5 (DE) p. 176
GDL-Handbuch 7.0 (DE) p. 176
GDL-Handbuch 8.0 (DE) p. 119
GDL-Handbuch 8.1 (DE) p. 120
GDL-Handbuch 9.0 (DE) p. 198
GDL-Handbuch 10.0 (DE) p. 200
GDL-Handbuch 11.0 (DE) p. 206
GDL Reference Guide 9.0 (INT) p. 192
GDL Reference Guide 10.0 (INT) p. 198
GDL Reference Guide 11.0 (INT) p. 198