Microsoft KB Archive/31224

Operator Priority Failure in Calculations without Parentheses

PSS ID Number: Q31224 Article last modified on 04-21-1993

2.20 | 2.20 MS-DOS | XENIX

Summary: Microsoft COBOL arrives at two different solutions for the following two calculations: B / C * D and B * D / C To work around this problem, use parentheses to separate mathematical arguments. This is a known problem in COBOL Version 2.2 for MS-DOS and XENIX. This problem has been fixed in version 3.0.

Additional reference words: 2.20 Copyright Microsoft Corporation 1993.