home *** CD-ROM | disk | FTP | other *** search
- METRIC CONVERTER
-
- "MC" is a WordPerfect(TM) 5.1 Macro that will make the
- following conversions from English Linear to Metric Linear:
-
- 1 Feet to Meters 4 Meters to Feet
- 2 Yards to Meters 5 Meters to Yards
- 3 Miles to Kilometers 6 Kilometers to Miles
-
- It can be edited to expand the choices, obviously, by expand-
- ing the Menu and the Subroutines to perform the conversions.
- (Conversion factors were obtained from Information Please
- Almanac.)
-
- Operation
-
- After selecting the Menu Item (1-6), the Macro prompts
- the User to key in the number of feet, yards, miles, meters,
- or kilometers, as the case may be. The macro then displays
- both the input value and the converted output value, e.g.:
-
- "* x miles = y kilometers *"
-
- To keep things tidy (so you can call up the Macro on any
- screen), the user is then prompted to press the {Enter} key to
- continue. When the {Enter} key is pressed, the Macro then
- clears the area used by the conversion display, leaving your
- editing screen the same as before.
-
- Problems and Challenges for Enhancements:
-
- 1. Right now, your input can have no decimals or commas.
- I know there is a way to use less than whole numbers in macro
- computations, because the Macro, CALC supplied with WP 5.1,
- does it. So I am working on it.
-
- Currently output with decimal values is achieved mechani-
- cally by inserting a decimal point four places to the left
- after the computation is complete: a crude, but effective way
- to achieve the result. Input, however, must be in whole
- numbers, and that limits the usefulness of this version of the
- Macro. If anyone knows how to do this, please feel free to
- upgrade this macro, and let me know. When I solve this
- problem, other mathematical computations, such as computation
- of mortgage payments, amortizations, may be possible.
-
- 2. Presently, the Answer is written to the Screen,
- rather than to a status line or prompt. I tried it the other
- way, but met with no success. Again, suggestions are welcome
- here.
-
- 3. As mentioned above, there are many more metric
- conversions
- that can be performed here, (and, of course, other useful
- conversions, such as feet to inches, and vice versa), and the
- only limit on them is the practical size of the menu screen,
- and tthe maximum length of a macro.
-
- Conditions of Use
-
- SHAREWARE: This is shareware, and made available to
- WordPerfect(TM) 5.1 users without charge or license. My only
- request is that in sharing the macro with others, you include
- this documentation.
-
- DISCLAIMERS: I assume no responsibility for any damage
- to your computer system or files as a result of use of this
- WordPerfect(TM) Macro. Before trying it on your system, be
- sure to save or exit all open WP files, in case, for some
- reason, your system locks up when the Macro is executed.
-
- If you have comments, suggestions or questions, these are
- very welcome. Please leave me a message on CIS EASYPLEX.
-
- David Hunsaker CIS # 76012,147 1/31/91