arithmetic
🔹 Summary
Currently, there are four different arithmetic operators implemented. Then, there is also a special operator used to determine order.
Follows the rules of BODMAS/PEMDAS
+ (Add)
- (Substract)
* (Multiply)
/ (Divide)
( ) (Round brackets are used to determine order of evaluation of the expression.)TLDR: Arithmetic is the art of messing around with numbers.
🔍 Syntax
value1 operator1 value2,
- Where all values are
int
. - Where operator1 is
+
,-
,*
, or/
.
Examples:
1 + 2
3 * 384 / 192
(29 + 6) / 5
(2 * 2 * 2) + 2
Output:
3
6
7
10