home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / source / p3_4bs.seq < prev    next >
Text File  |  1990-04-06  |  752b  |  24 lines

  1. \ Balraj Sidhu   Set: 14D4
  2. \ Comp 462 - Forth
  3. \ Date: April 6, 1990
  4. \ Problem 3.4
  5.  
  6.  
  7. COMMENT:
  8.  
  9. Floored Division
  10. ----------------
  11.  
  12.     m     n           r            q          Check:  n   *    q   +   r
  13. ----------------------------------------------------------------------------
  14.    13     5           3            2                  5   *    2   +  13
  15.   -11     5           4           -3                  5   *   -3   +   4
  16.    -2     5           3           -1                  5   *   -1   +   3
  17.    13    -5          -2           -3                 -5   *   -3   +  -2
  18.   -11    -5          -1            2                 -5   *    2   +  -1
  19.    -2    -5          -2            0                 -5   *    0   +  -2
  20.  
  21.  
  22. COMMENT;
  23.  
  24.