home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / APPS / WORDPERF / WPUTIL36.ZIP / METRIC.ZIP / MC.DOC next >
Encoding:
Text File  |  1991-01-30  |  3.1 KB  |  76 lines

  1.                      METRIC CONVERTER
  2.  
  3.      "MC" is a WordPerfect(TM) 5.1 Macro that will make the
  4. following conversions from English Linear to Metric Linear:
  5.  
  6.    1  Feet to Meters         4  Meters to Feet 
  7.    2  Yards to Meters        5  Meters to Yards
  8.    3  Miles to Kilometers    6  Kilometers to Miles
  9.  
  10. It can be edited to expand the choices, obviously, by expand-
  11. ing the Menu and the Subroutines to perform the conversions. 
  12. (Conversion factors were obtained from Information Please
  13. Almanac.)
  14.  
  15.                        Operation
  16.  
  17.      After selecting the Menu Item (1-6), the Macro prompts
  18. the User to key in the number of feet, yards, miles, meters,
  19. or kilometers, as the case may be.  The macro then displays
  20. both the input value and the converted output value, e.g.: 
  21.  
  22.                "*  x miles = y kilometers  *"
  23.  
  24.      To keep things tidy (so you can call up the Macro on any
  25. screen), the user is then prompted to press the {Enter} key to
  26. continue.  When the {Enter} key is pressed, the Macro then
  27. clears the area used by the conversion display, leaving your
  28. editing screen the same as before.
  29.  
  30.       Problems and Challenges for Enhancements:
  31.  
  32.      1.  Right now, your input can have no decimals or commas. 
  33. I know there is a way to use less than whole numbers in macro
  34. computations, because the Macro, CALC supplied with WP 5.1,
  35. does it.  So I am working on it.  
  36.  
  37.      Currently output with decimal values is achieved mechani-
  38. cally by inserting a decimal point four places to the left
  39. after the computation is complete:  a crude, but effective way
  40. to achieve the result.  Input, however, must be in whole
  41. numbers, and that limits the usefulness of this version of the
  42. Macro.  If anyone knows how to do this, please feel free to
  43. upgrade this macro, and let me know.  When I solve this
  44. problem, other mathematical computations, such as computation
  45. of mortgage payments, amortizations, may be possible.
  46.  
  47.      2.  Presently, the Answer is written to the Screen,
  48. rather than to a status line or prompt.  I tried it the other
  49. way, but met with no success.  Again, suggestions are welcome
  50. here.
  51.  
  52.      3.  As mentioned above, there are many more metric
  53. conversions
  54. that can be performed here, (and, of course, other useful
  55. conversions, such as feet to inches, and vice versa), and the
  56. only limit on them is the practical size of the menu screen,
  57. and tthe maximum length of a macro.  
  58.  
  59.                        Conditions of Use
  60.  
  61.      SHAREWARE:  This is shareware, and made available to
  62. WordPerfect(TM) 5.1 users without charge or license.  My only
  63. request is that in sharing the macro with others, you include
  64. this documentation.  
  65.  
  66.      DISCLAIMERS:  I assume no responsibility for any damage
  67. to your computer system or files as a result of use of this
  68. WordPerfect(TM) Macro.  Before trying it on your system, be 
  69. sure to save or exit all open WP files, in case, for some
  70. reason, your system locks up when the Macro is executed.
  71.  
  72.      If you have comments, suggestions or questions, these are
  73. very welcome.  Please leave me a message on CIS EASYPLEX. 
  74.  
  75.       David Hunsaker  CIS # 76012,147    1/31/91
  76.