# / arithmetic operator

The / arithmetic operator performs division.

## Syntax

```
num.exp / num.exp
```

## Description

Should the denominator expression
evaluate to a zero, this run-time warning message displays:

```
[b24] in program "pgm", line n: Division by zero illegal; zero used.
```

## Example(s)

Divides the contents of the `total.price` variable by the contents of the `total.hours` variable and places the results in the `hourly.cost` variable.

```
hourly.cost = total.price / total.hours
```

## See also

- [casing statement](https://d3codex.com/pickbasic-flashbasic/casing-statement/)
- [conv-case command](https://d3codex.com/tcl/conv-case-command/)
- [footing statement](https://d3codex.com/pickbasic-flashbasic/footing-statement/)
- [heading statement](https://d3codex.com/pickbasic-flashbasic/heading-statement/)
- [Numeric expressions](https://d3codex.com/pickbasic-flashbasic/numeric-expressions/)
- [String expressions](https://d3codex.com/pickbasic-flashbasic/string-expressions/)

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