# Arithmetic expressions

Arithmetic expressions perform mathematical calculations
on any set of operand expressions.

| Symbol | Precedence | Operation |
| --- | --- | --- |
| ^ | 1 | exponentiation |
| * | 2 | multiplication |
| / | 2 | division |
| \ | 2 | remainder |
| + | 3 | addition |
| - | 3 | subtraction |
Expressions are evaluated in order of precedence unless
placed within parentheses.

Expressions with the same precedence
evaluate left-to-right:

`10+2*10` evaluates to
30.

Expressions within the innermost parentheses are evaluated
first:

`(10+2)*10` evaluates to 120.

`(10+(2*10))` evaluates to 30.

## See also

- [() reserved characters](https://d3codex.com/pickbasic-flashbasic/parenthesis-reserved-characters/)
- [* arithmetic operator](https://d3codex.com/pickbasic-flashbasic/asterisk-arithmetic-operator/)
- [*= assignment operator](https://d3codex.com/pickbasic-flashbasic/asterisk-equals-assignment-operator/)
- [+ arithmetic operator](https://d3codex.com/pickbasic-flashbasic/plus-arithmetic-operator/)
- [+= assignment operator](https://d3codex.com/pickbasic-flashbasic/plus-equals-assignment-operator/)
- [- arithmetic operator](https://d3codex.com/pickbasic-flashbasic/minus-arithmetic-operator/)
- [-= assignment operator](https://d3codex.com/pickbasic-flashbasic/minus-equals-assignment-operator/)
- [/= assignment operator](https://d3codex.com/pickbasic-flashbasic/slash-equals-assignment-operator/)
- [:= assignment operator](https://d3codex.com/pickbasic-flashbasic/colon-equals-assignment-operator/)
- [Arithmetic operators](https://d3codex.com/pickbasic-flashbasic/arithmetic-operators/)
- [Logical expressions](https://d3codex.com/pickbasic-flashbasic/logical-expressions/)
- [Precedence](https://d3codex.com/pickbasic-flashbasic/precedence/)
- [Relational operators](https://d3codex.com/pickbasic-flashbasic/relational-operators/)
- [String expressions](https://d3codex.com/pickbasic-flashbasic/string-expressions/)
- [\= assignment operator](https://d3codex.com/pickbasic-flashbasic/backslash-equals-assignment-operator/)

---
Source: https://d3codex.com/pickbasic-flashbasic/arithmetic-expressions/ - part of the D3Codex reference.
