Negative Math/Overflow in Compiled Program; OK in Interpreter (34290)
The information in this article applies to:
- Microsoft QuickBASIC 1.0
- Microsoft BASIC Compiler
- Microsoft BASIC Interpreter for Apple Macintosh 2.0
- Microsoft BASIC Interpreter for Apple Macintosh 2.1
- Microsoft BASIC Interpreter for Apple Macintosh 3.0
This article was previously published under Q34290 SUMMARY
This information applies to Microsoft QuickBASIC Version 1.00,
Microsoft BASIC Compiler Version 1.00, and Microsoft BASIC Interpreter
Versions 2.00, 2.10, and 3.00 for the Apple Macintosh.
The compiler is more limited than the interpreter in handling numeric
overflow and will, in certain circumstances, return negative or wrong
values when intermediate calculations overflow. The compiler must
decide at compile time which precision is appropriate for a given
operation. The precision cannot be changed if it proves inadequate at
run time. This difference is documented on Page 90 of the "Microsoft
BASIC Compiler for Apple Macintosh" manual and Page 70 of the
"Microsoft QuickBASIC for Apple Macintosh: User's Guide."
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB34290 |
---|
|