![]() |
If divisor is zero, a divide by zero error is returned.
|
![]() |
The MOD operator can be abbreviated with the percent sign ( %). For example, TEMP = 5 % 3 is equivalent to TEMP = 5 MOD 3.
|
TEMP = 10 MOD 8 or TEMP = 10 % 8
|
Creates three new columns named TEMP, VX, and VY. The values in the TEMP column are the values modulo two of the contents of column V1, the values of the VX column are the values modulo two of the contents of column V2, and the values of the VY column are the values modulo two of the contents of column V3.
|
Creates a new column named TEMP, containing a zero for each entry in the column V1. This is because every number modulo itself is zero.
|
Creates a new column named TEMP, where each value is the row value of column V1 modulo the corresponding row value of column V2. Note that if V2=V1, then all zeros are returned, as in the previous example.
|
Creates three new columns named TEMP, VX, and VY. The column TEMP contains the values in V1 modulo the corresponding row values of column V4. The column VX contains the results of column V2 modulo V5. The column VY contains the results of column V3 modulo V6.
|
TEMP = V1[10:20] % V2 or TEMP = V1[10:20] % V2[1:11]
Creates a new column named TEMP, where the first 11 cells are the values of the values in rows 10-20 of column V1 modulo the values in rows 1-11 of column V2. The other cells in TEMP are empty.
|
Copyright IBM Corporation 2015. All Rights Reserved.
|