PRB: SET DECIMAL Limited to Four Decimals in Currency Data (192961)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q192961 SYMPTOMS
The 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.
RESOLUTION
You can use the Transform function to convert a currency value to the
number of decimals you want, but this also changes 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:
x=$123.323
? TRANSFORM(x,'9999.9999999')
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 3/10/2000 |
---|
Keywords: | kbprb KB192961 |
---|
|