# Rem= Operator

Divides the value of a variable by the value of an expression, then changes the variable to the remainder.

## Syntax

```
variable Rem= expression
```

## Parts

`variable`

- A variable with a numeric type.
`expression`

- An expression with a numeric type.

## Instructions

The two statements that follow operate the same.

```
variable Rem= expression
variable = variable Rem expression
```

Because `Rem= `

comes from `Rem`

, the sign of the variable (positive or negative) changes to the sign of the expression.

### Data types

TODO

### Division by zero

TODO

## Examples

```
x = -42
x Rem= 10
```

Variable | Value |
---|---|

`x` | 2 |