---
title: Arithmetic operators
card_id: 89523
modified: yes
---

# Arithmetic operators

### -

Makes the number to its right negative or subtracts the number on the right from the number on the left.

```
-33
3 - 2
the number of this card - 1
```

### +

Adds the number on the left to the number on the right.

```
1 + 2
the bottom of card button 1 + 5
```

### *

Multiplies the number on the left by the number on the right.

```
3 * 2
lineNumber * the textHeight of card field 1
```

### /

Divides the number on the left by the number on the right.

```
23 / 13
the number of cards / 10
the freesize of this stack / 1024
```

### ^

Raises the number on the left to the power of the number on the right.

```
3 ^ 3
2 ^ 10
2 ^ -1
10 ^ 7.1
10 ^ pi
```

### div

Divides the number on the left by the number on the right and ignores any remainder.

```
100 div 13
the number of cards div 2
the freesize of this stack div 1024
```

### mod

Divides the number on the left by the number on the right and returns the remainder.

```
100 mod 19
the number of this card mod 2
```

## Related Topics

* [add](/HyperTalkReference/commands/add)
* [divide](/HyperTalkReference/commands/divide)
* [exp, exp1, exp2](/HyperTalkReference/functions/exp-exp1-exp2)
* [multiply](/HyperTalkReference/commands/multiply)
* [numberFormat](/HyperTalkReference/properties/numberFormat)
* [subtract](/HyperTalkReference/commands/subtract)
