COBOL Manual for TNS/E Programs (H06.03+)
Procedure Division Verbs
HP COBOL Manual for TNS/E Programs—520347-003
9-123
MULTIPLY BY
Example 9-43 converts a length in feet to a length in inches.
Example 9-44 converts several dimensions from centimeters to inches, with rounding.
Example 9-43. MULTIPLY BY Statement
05 LENGTH PICTURE S9(6)V9(6).
...
MULTIPLY 12 BY LENGTH
Example 9-44. MULTIPLY BY Statement With ROUNDED Phrase
03 CM-TO-INCHES PICTURE S9V99
VALUE 0.39.
...
03 LENGTH PICTURE S9(3)V9(2).
03 WIDTH PICTURE S9(3)V9(2).
03 DEPTH PICTURE S9(3)V9(2).
...
MULTIPLY CM-TO-INCHES BY LENGTH ROUNDED
WIDTH ROUNDED
DEPTH ROUNDED










