Primitive Variable Operations

Note

All primitive-variable operations can be used in the same way when using variable names or literals (2, 2.0, etc.)

Basic Mathematical Operations

Addition (+)

This operation is written just like how you would expect it to be written.

Subtraction (-)

This operation is also written just like how you would expect it to be written.

Multiplication (*)

Multiplication is also written just like how you would expect it to be written.

Division (/)

Division is also written just like how you would expect it to be written.

Modulus (%)

The modulus symbol is written in between two value, like the four mathemtatical operators described above. Modulus calculates the remainder of the division between the variable on the left and the variable on the right.
NOTE: Modulus cannot be used on floating-point variables.