FIX: FoxPro Calculator Returning Incorrect Percentages (104477)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for MS-DOS 2.0
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
This article was previously published under Q104477 SYMPTOMS
The 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.
RESOLUTION
To work around this problem, choose the equal sign (=) instead of the
percent sign, and then multiply by 100.
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbbug kbfix KB104477 |
---|
|