Basic 7.1 "Division by Zero" on 386 with 387, (-X)^2 or Other (62830)
The information in this article applies to:
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
This article was previously published under Q62830 SYMPTOMS
Executing the following line of code on an 80386 machine equipped with
an 80387 math coprocessor results in a "Division by zero" error:
X = (-1 * W) ^ 2 ' Note that W defaults to a zero (0) value
X = (-W) ^ 2 ' Note that W defaults to a zero (0) value
This problem has also been reported with other similar numeric
expressions where a variable equal to zero (0) is multiplied by a
negative value and that expression in parentheses is raised to a
power.
The "Division by zero" error occurs in both the QBX.EXE environment
and within a compiled .EXE in Microsoft Basic Professional Development
System (PDS) versions 7.0 and 7.1. The error occurs only on 80386
computers with 80387 coprocessors.
STATUS
Microsoft has confirmed this to be a bug with Microsoft Basic PDS
versions 7.0 and 7.1 for MS-DOS and MS OS/2. We are researching this
bug and will post new information here as it becomes available.
This problem does not occur with other Microsoft Basic products.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | KB62830 |
---|
|