Arithmetic Operators
Arithmetic operators are used to perform arithmetic operations that involve calculation of numeric values. The table below summarizes them:
| Operator | Use |
| ^ | Exponentiation |
| - | Negation (used to reverse the sign of the given value, exp -intValue) |
| * | Multiplication |
| / | Division |
| \ | Integer Division |
| Mod | Modulus Arithmetic |
| + | Addition |
| - | Subtraction |
Concatenation Operators
Concatenation operators join multiple strings into a single string. There are two concatenation operators, + and & as summarized below:
| Operator | Use |
| + | String Concatenation |
| & | String Concatenation |
Comparison Operators
A comparison operator compares operands and returns a logical value based on whether the comparison is true or not. The table below summarizes them:
| Operator | Use |
| = | Equality |
| <> | Inequality |
| < | Less than |
| > | Greater than |
| >= | Greater than or equal to |
| <= | Less than or equal to |
Logical / Bitwise Operators
The logical operators compare Boolean expressions and return a Boolean result. In short, logical operators are expressions which return a true or false result over a conditional expression. The table below summarizes them:
| Operator | Use |
| Not | Negation |
| And | Conjunction |
| AndAlso | Conjunction |
| Or | Disjunction |
| OrElse | Disjunction |
| Xor | Disjunction |
No comments:
Post a Comment