DIVIDE returns the quotient of
x/y with a precision specified
by
p and
q. The base, scale, and mode of the result
follow the rules for expression evaluation unless overruled by the
PRECTYPE compiler option.
>>-DIVIDE(x,y,p-+----+-)---------------------------------------><
'-,q-'
- x
- Expression.
- y
- Expression. If y = 0, the ZERODIVIDE condition is raised.
- p
- Restricted expression specifying the number of digits to be
maintained throughout the operation.
- q
- Restricted expression specifying the scaling factor of the result.
For a fixed-point result, if q is omitted, a scaling factor
of zero is the default. For a floating-point result, q must
be omitted.