home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / CREXX / REXXCALC / REMAIND.CAL < prev    next >
Text File  |  1994-11-17  |  485b  |  10 lines

  1. /* Rexx Calculator remainder processor */
  2. parse arg left, right                  /* get the two operands       */
  3. numeric digits CalcPrecision()         /* set current precision      */
  4. numeric form value CalcForm()          /* set current form           */
  5.  
  6. if (right = 0)                         /* bad division?              */
  7.   then return 'Error'                  /* return error indicator     */
  8.  
  9. return left // right                   /* return result              */
  10.