arithmetic_operators.htm
| Navigation: Language Reference > 10 - Expressions > Operators >====== Arithmetic Operators ====== | ![]() ![]() |
An arithmetic operator combines two operands arithmetically to produce an intermediate value. The operators are:
| + | Addition (A + B gives the sum of A and B) | |
| - | Subtraction (A - B gives the difference of A and B) | |
| * | Multiplication (A * B multiples A by B) | |
| / | Division (A / B divides A by B) | |
| ^ | Exponentiation (A ^ B raises A to power of B) | |
| % | Modulus Division (A % B gives the remainder of A divided by B) |
The sign of the Modulus Division result can be controlled by the compatible_modulus #PRAGMA define. See SoftVelocity #PRAGMAS
There are also “shortcut” arithmetic operator assignments that simplify your code. For more information, see Operating Assignments.
arithmetic_operators.htm.txt · Last modified: by 127.0.0.1




