DIVIDE

DEVICE Syntax Diagram

Effect

Divides the contents of n1 by n2 and places the result in n1.

This is equivalent to: n1 = n1 / n2.

Example

DATA: SUM TYPE P, NUMBER TYPE P. 
DIVIDE SUM BY NUMBER.

Note

The details regarding conversions and performance given under COMPUTE apply equally to DIVIDE. Furthermore: Division by 0 is not allowed, except where 0 / 0 results in 0.

Note

Catchable runtime error

Non-catchable runtime error

Related

COMPUTE, DIVIDE-CORRESPONDING