Basic - Parenthesis operator: ( )
We can use parentheses to change the order of expression evaluation, in other words, we can override operator precedence.( )
Description
( expression )
Input
- expression - Expressions
Output
- Result - Any
Examples
Basic
Parenthesis operator the possible of use:x = 90 mod 8 ' x = 2
y = 15 mod 4 ' y = 3
z = (x mod y) mod 5' z = 2
Basic
Even one example in what situations we can use the operation parenthesis operator:i * &HFF
10 * 3.14
(10 - j * 0.5) * 2
Basic
Other pieces of example codes:do i=i-1 loop until ( i = 0)
(2.5 / 2 + 1.25) + 2
2 and (i and 4)
(x-y)-30.5
(25 \ 2 + 1) + 2
(j + 10) <= 128
Parenthesis operator in another programming language: