/ 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

conv-case Command

footing Statement

heading Statement

Numeric Expressions

String Expressions