home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / PROCALC.ZIP / PROCALC.HLP (.txt) < prev   
OS/2 Help File  |  1991-10-05  |  6KB  |  137 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Overview for Calculator ΓòÉΓòÉΓòÉ
  3.  
  4. This calculator is targetted directly for programmers. 
  5.  
  6. My hexidecimal, binary and octal arithmetic is not the hotest, after getting 
  7. sick of looking up boring translation tables in obscure manuals all the time, I 
  8. decided to write this program. 
  9.  
  10. I have used it ever since ! 
  11.  
  12. Note:  The program will minimise automatically at startup time. I have done 
  13. this deliberately. Is best for you to select it as an 'auto-start' program 
  14. (featured in OS/2 1.3 or greater) so that it starts up when you boot your PC 
  15. and stays in a minimised state (as an icon) until you want it. If you want to 
  16. use it, simply double click on the icon ! 
  17.  
  18.  
  19. ΓòÉΓòÉΓòÉ 2. Colour Options ΓòÉΓòÉΓòÉ
  20.  
  21. You can change the colours associated with various parts of the calculator. By 
  22. selecting the system menu icon, located in the extreme top left hand corner, 
  23. then selecting the 'Colour Options' item. 
  24.  
  25. From the selections, you can change both the button foreground and background 
  26. colours. The Buttons which you can change are: 
  27.  
  28.  Text      This sets the colour of the text which appears on the actual button. 
  29.  
  30.  Button    This changes the background colour of the button. 
  31.  
  32.  Operators This changes the colour on the 'Operator' buttons. 
  33.  
  34.  Bitwise   This changes the colour on the 'Bitwise' buttons. 
  35.  
  36.  Select the 'Text' button first, then choose the colour you want. When you are 
  37.  happy with this press the 'Text' button. 
  38.  
  39.  This will then enable the 'Button' button, select the colour you want for this 
  40.  then select the 'Button' button. 
  41.  
  42.  Repeat the same selection process for both the 'Operator' button and the 
  43.  'Bitwise' button. 
  44.  
  45.  When you are happy with your selections, select the 'Apply' button. This will 
  46.  update the calculator with the colours you have selected. 
  47.  
  48.  Note: 
  49.  
  50.  If you want to make your changes permanent, then select the 'Save' button. 
  51.  This will perform the permanent save and apply functions automatically. 
  52.  
  53.  If you have really 'botched' it up then select the 'Cancel' button then you 
  54.  can start all over again. 
  55.  
  56.  
  57. ΓòÉΓòÉΓòÉ 3. Number Bases ΓòÉΓòÉΓòÉ
  58.  
  59. The Calculator program offers you 4 number bases to work with. 
  60.  
  61.  Binary    Base 2, to select this base, simply click on the 'Bin' radio button 
  62.            or by using the keyboard with the <Shift-B> combination. 
  63.  
  64.  Hexidecimal Base 16, to select this base, simply click on the 'Hex' radio 
  65.            button or by using the keyboard with the <Shift-H> combination. 
  66.  
  67.  Decimal   Base 10, to select this base, simply click on the 'Dec' radio button 
  68.            or by using the keyboard with the <Shift-D> combination. 
  69.  
  70.  Octal     Base 8, to select this base, simply click on the 'Oct' radio button 
  71.            or by using the keyboard with the <Shift-O> combination. 
  72.  
  73.  
  74. ΓòÉΓòÉΓòÉ 4. Arithmetic Operators ΓòÉΓòÉΓòÉ
  75.  
  76. The Calculator program offers you 4 standard operators to work with. 
  77.  
  78.  + (Addition) e.g. 1 + 1 = 2 
  79.  
  80.  - (Subtraction) e.g. 8 - 3 = 5 
  81.  
  82.  / (Division) e.g. 100 / 10 = 10 
  83.  
  84.  * (Multiplication) e.g. 3 * 2 = 6 
  85.  
  86.  then 6 extended arithmetic operators which are often used by programmers. 
  87.  
  88.  AND (Logical AND) e.g. in C, this would look like 0xFE & 0x01 
  89.  
  90.  OR (Logical OR) e.g. in C, this would look like 0xFE | 0x01 
  91.  
  92.  XOR (Exclusive OR) e.g. in C, this would look like 0xFE ^ 0x01 
  93.  
  94.  MOD (Modulus Division) e.g. in C, this would look like 0xFE % 0x01 
  95.  
  96.  SHL (Bitwise Shift Left) e.g. in C, this would look like 0xFE << 8 
  97.  
  98.  SHR (Bitwise Shift Right) e.g. in C, this would look like 0xFE >> 8 
  99.  
  100.  
  101. ΓòÉΓòÉΓòÉ 5. Operation of ΓòÉΓòÉΓòÉ
  102.  
  103. The calculator will default to Decimal (Base 10) initially at startup. 
  104.  
  105. Use the calculator as you would with any 'normal' scientific type calculator. 
  106.  
  107. Note:  Real numbers (e.g. 1.234556 etc) are only supported when you are in 
  108. decimal mode only. If you have a real number being displayed and then switch to 
  109. a non-decimal base, the number will be truncated downwards to the nearest whole 
  110. number. Upon reselecting the decimal base the complete real number will be 
  111. re-instated as it was displayed before. 
  112.  
  113. To clear the display, select the Kill' button this clears the display and 
  114. resets the calculator back to zero (as if you had turned the calculator off) 
  115.  
  116. Note:  The base will remain unchanged when the 'Kill' button is selected. 
  117.  
  118.  
  119. ΓòÉΓòÉΓòÉ 6. Repetitve Operations ΓòÉΓòÉΓòÉ
  120.  
  121. Quite often I have needed to use the calculator as an Adding Machine. 
  122.  
  123. To perform the operation of say, adding 1 and 2 and 3 and 4 together then 
  124. divide that result by 10.374, follow these sequence of keystrokes: 
  125.  
  126.  Make sure the keyboard is in Num Lock mode. (Num Lock light is ON) 
  127.  1 
  128.  + 
  129.  2 
  130.  + 
  131.  3 
  132.  + 
  133.  4 
  134.  / 
  135.  10.374 
  136.  = 
  137.