BUG: CALCULATE SUM() Results Differ Based on SET DECIMALID: Q113209 The information in this article applies to:
SYMPTOMSIssuing the CALCULATE SUM() command with a field as the argument to SUM() will return values other than 0 (zero) past the second decimal place if SET DECIMALS TO is set to greater than 2. However, this behavior should never occur if the field is defined as having only two decimals.
STATUSMicrosoft has confirmed this to be a problem 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 ProblemRun the following code from a program:
The output that this program produces will look something like the
following, although the values will be different:
NOTE: You may have to run the program several times before you will see
this behavior.
However, the output should look like the following:
VAL2 should have zeros only from the third decimal place on because
TEST.VALUE is defined in the table as being only two decimal places wide.
Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b buglist2.00 buglist2.50 buglist2.50a buglist2.50b round conversion 2.60 buglist2.60 KBCategory: kbprg kbbuglist KBSubcategory: FxprgGeneral |
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |