4D v14.3Numerische Operatoren |
|||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Numerische Operatoren
|
Operation | Syntax | Ergibt | Ausdruck | Wert |
Addition | Zahl + Zahl | Zahl | 2 + 3 | 5 |
Subtraktion | Zahl – Zahl | Zahl | 3 – 2 | 1 |
Multiplikation | Zahl * Zahl | Zahl | 5 * 2 | 10 |
Division | Zahl / Zahl | Zahl | 5 / 2 | 2,5 |
Ganzzahlige Division | Zahl \ Zahl | Zahl | 5 \ 2 | 2 |
Modulo | Zahl % Zahl | Zahl | 5 % 2 | 1 |
Exponent | Zahl ^ Zahl | Zahl | 2 ^ 3 | 8 |
Der Modulo Operator % dividiert die erste Zahl durch die zweite und übergibt den ganzzahligen Restwert. Beispiele:
WARNUNG:
Produkt: 4D
Thema: Operatoren
Bildoperatoren
Bit Operatoren
Boolean Operatoren
Datumsoperatoren
Operatoren
String Operatoren
Vergleichsoperatoren
Zeitoperatoren
4D Programmiersprache ( 4D v12.4)
4D Programmiersprache ( 4D v11 SQL Release 6)
4D Programmiersprache ( 4D v14 R3)
4D Programmiersprache ( 4D v14 R2)
4D Programmiersprache ( 4D v13.5)
4D Programmiersprache ( 4D v14.3)
4D Programmiersprache ( 4D v14 R4)