Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

Division Operator:   /

performs elementwise division

matrix1/matrix2
matrix/scalar

The division operator (/) divides each element of matrix1 by the corresponding element of matrix2, producing a matrix of quotients.

In addition to dividing elements in conformable matrices, you can also use the division operator to divide a matrix by a scalar. If either operand is a scalar, the operation does the division for each element and the scalar value.

When a missing value occurs in an operand, the IML procedure assigns a missing value for the corresponding element in the result.

If a divisor is zero, the procedure prints a warning and assigns a missing value for the corresponding element in the result. An example of a valid statement using this operater follows:

   c=a/b;

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.