|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide divide.pro
divide |
This procedure divides the data from two data containers stored in the global buffers 0-15. If no parameters are passed, then the data from buffer 0 is divided by buffer 1 and the result is stored in buffer 0. If two parameters are supplied, the data at the first buffer number is divided by the data at the second buffer number and the result is stored in buffer 0. If three parameters are supplied, the result is stored in the third (output) buffer number.
out = in1 / in2
getrec,1 copy,0,1 getrec,2 divide getrec,1 copy,0,10 getrec,2 copy,0,11 divide,10,11,12 ; The data from buffer 10 is divided by buffer 11 ; and the result is stored in buffer 12
Parameters | |
in1 |
First input data buffer number |
in2 |
Second input data buffer number |
out |
Output data buffer number |