The arithmetic operators perform standard arithmetical operations on signed values.

Operator | Syntax | Description
+ | expression 1 + expression 2 | Add expression 1 to expression 2. See + operator.
- | expression 1 - expression 2 | Subtract expression 2 from expression 1. See - operator.
* | expression 1 * expression 2 | Multiply expression 1 by expression 2 See * operator.
/ | expression 1 / expression 2 | The integer quotient of expression 1 divided by expression 2. See / operator.
% | expression 1 % expression 2 | The integer remainder of expression 1 divided by expression 2. See % operator.
SHL << | expression 1 SHL expression 2 expression 1 << expression 2 | Shift expression 1 left by expression 2 bits. See SHL and << operators.
SHR >> | expression 1 SHR expression 2 expression 1 >> expression 2 | Shift expression 1 right by expression 2 bits with zero fill. (This is commonly called a logical shift). See SHR and >> operators.
ASHR | expression 1 ASHR expression 2 | Shift expression 1 right by expression 2 bits with sign fill. (This is commonly called an arithmetic shift). See ASHR operator.