FIX: FoxPro Calculator Returning Incorrect PercentagesLast reviewed: October 14, 1997Article ID: Q104477 |
2.00 2.5x 2.60 2.60a | 2.5x 2.60 2.60a 3.00
MS-DOS | WINDOWSkbtool kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSThe FoxPro calculator returns the wrong values when the percent (%) sign is used. Incorrect values are consistently returned regardless of the numbers used in the calculation. For the numbers 2 and 3 divided by any number, the percentage returned appears to be half of what it should be. For higher numbers, it appears as if the calculator is actually inserting a MOD() function and returning a percentage of the remainder.
RESOLUTIONTo work around this problem, choose the equal sign (=) instead of the percent sign, and then multiply by 100.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.
MORE INFORMATION
Steps to Reproduce ProblemNOTE: In Visual FoxPro to run the calculator, type the following in the Command window:
ACTIVATE WINDOW CALCULATOR NOTE: In Visual FoxPro for Windows, .02 is returned. NOTE: In Visual FoxPro for Windows, .08 is returned.
|
Additional reference words: VFoxWin FoxWin FoxDos 2.00 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |