-
Notifications
You must be signed in to change notification settings - Fork 37
Arithmetics
Aaron Niyonzima edited this page Sep 15, 2020
·
3 revisions
Arithmetic operations are done using the following operators:
- Addition:
+
- Subtraction:
-
- Multiplication:
*
- Division:
/
- Exponent (Power):
**
or^
The precedences are the same as in any other programming language: *
and /
have higher precedence than +
and -
.
You can use ( )
to override them.
x = 2 + 3 * 4 ;* x = 14
// But
y = (2 + 3) * 4 ;* y = 20
- Home
- Getting started with InfoBasic(jbc)
- Key Features of InfoBasic
- Control Flow
- Subroutines and Functions
- OFS
- Template Programming
- T24 Integration with other Systems
- T24 Business Training
- T24 Navigation Training
- T24 Administration Training