The information in this article applies to:
SYMPTOMSThe maximum number of decimal places allowed in a currency value is four. Using the SET DECIMAL command to set more than four decimal places in a currency value does not work. RESOLUTIONYou can use the Transform function to convert a currency value to the number of decimals you want, but this will change the data type to character instead of currency type. You will note this problem, for instance, if you type the following in the Command window:
STATUSThis behavior is by design. MORE INFORMATIONIf the initial currency value has two decimals, setting SET DECIMAL to four pads two zeros at the end of the currency value. Steps to Reproduce BehaviorRun the following commands in Command window or from a program:
If the above code runs in Visual FoxPro 3.x, four decimals appear
regardless of the setting of the SET DECIMAL command.
Additional query words: kbDSupport kbDse kbXBase kbVFp500abug kbVFp600bug
Keywords : |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |