BUG: Math w/ Long-Integer Constants Gives Bad Answer Compiled (57710)
This article was previously published under Q57710
SYMPTOMS
If an expression contains an addition, subtraction, or multiplication
of two long-integer constants so that the computed result exceeds
32,767 (the maximum short integer), the compiled application gives
wrong numeric results. (Division works correctly.)
Microsoft has confirmed this to be a bug with applications
compiled with Microsoft QuickBasic Version 1.00 for Macintosh
systems. We are researching this problem and will post new information
as it becomes available. This problem does not occur in the
interpreter in QuickBasic Version 1.00.
To work around this problem in compiled programs, store one or more of
the literals in a variable and use the variable in the computational
expression.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
kbbug KB57710 |
|