User Tools

Site Tools


arithmetic_operators.htm
Navigation:  Language Reference > 10 - Expressions > Operators >====== Arithmetic Operators ====== Previous pageReturn to chapter overviewNext page

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)

NoteBox.jpg

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: 2021/04/15 15:56 by 127.0.0.1