Arithmetic Operators
Operator | Operation | Example | Result |
---|---|---|---|
* | Multiplication | x * y | Product of x and y |
/ | Division | x / y | Quotient of x and y |
% | Modulo | x % y | Remainder of x divided by y |
+ | Addition | x + y | Sum of x and y |
- | Subtraction | x - y | Difference of x and y |
+(unary) | Positive | +x | Value of x |
-(unary) | Negative | -x | Negative value of x |