Current Page: NeXtMidas Training Macros - Part 1 (Basics) Macro Basics Lab 1 - Macro Basics Instructions
- - | Lab 1 - Macro Basics: Using a text editor, create a new file named `mcrlab1.mm`. Put the file in your home directory. At the top of the macro insert a comment with your name. Now add the appropriate `STARTMACRO` and `ENDMACRO` lines. Your macro will take in three parameters:
    NAME | A person's name.
    FEET | The person's height in feet (no inches).
    INCHES | The person's height in inches (less any feet).
  - In the macro compute the persons height in centimeters (cm). You can use the conversion `1cm = 0.3937in`. Drop of any fractional centimeters. Use `INFO` to print out how tall the person is. Try using your macro.
        nM> %mcrlab1 "Lee" 5 6
        INFO: Lee is 167cm tall [%MCRLAB1]
Hint: To drop the decimal place, you can use type L (long integer) instead of D (double) for your result variable.