BUG: Some Compiler and Debugger REAL Arithmetic Results DifferLast reviewed: March 28, 1996Article ID: Q149157 |
The information in this article applies to:
SYMPTOMSThe results of some REAL double-precision arithmetic expressions generated by the compiler are different in the low order decimal digits from what is displayed for the same arithmetic expressions in the debugger.
CAUSEIntermediate values in the debugger are saved to and reloaded from the stack. The saving and reloading of these intermediate values causes some rounding to occur.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
real*8 A, B, C, D A = 100.92 B = -82.73 C = -17.29 D = 4.0 write (*,*) (((-C)**D)+((A*D)/B)) end (((-C)**D)+((A*D)/B))
OutputFrom the debugger: 89362.714366112600000 Program execution: 89362.714366112590000
|
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |