home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rpos2101.zip / MATH.P < prev    next >
Text File  |  1998-06-05  |  825b  |  38 lines

  1. R: math.p - A demonstration of RPilot's math features
  2.  : Written by Rob Linwood (auntfloyd@biosys.net)
  3.  
  4. T: This program is meant to show how good RPILOT is at math.  I want
  5.  : you to give me two numbers, and I'll show you what I can do with them
  6.  :
  7.  : Ok, I'm ready for the first number
  8.  :
  9.  
  10. A: #first
  11.  
  12. T:
  13.  : Now the second
  14.  :
  15.  
  16. A: #second
  17.  
  18. C: #add = #first + #second
  19. C: #sub = #first - #second
  20. C: #mul = #first * #second
  21. C: #div = #first / #second
  22. C: #mod = #first % #second
  23. C: #and = #first & #second
  24. C: #or  = #first | #second
  25. C: #xor = #first ^ #second
  26.  
  27. T:
  28.  : #first + #second = #add
  29.  : #first - #second = #sub
  30.  : #first * #second = #mul
  31.  : #first / #second = #div
  32.  : #first modulo #second = #mod
  33.  : #first AND #second = #and
  34.  : #first OR #second = #or
  35.  : #first XOR #second = #xor
  36.  :
  37.  
  38.