BUG: Transform() Results Formatted Incorrectly (247494)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q247494 SYMPTOMS
You might see that the results of the TRANSFORM() function appear off by approximately .0000000000001. This behavior may occur when COMPATIBLE is OFF. However, when COMPATIBLE is ON, the expected behavior is observed.
RESOLUTIONWorkaround
Here are three ways to work around this behavior:
- Use this code:
SET COMPATIBLE ON
-or- - Use this code:
ALLTRIM(STR(<nExpr>, <nLength>, <nDecimalPlaces>))
-or- - Use this code:
SET DECIMALS TO <nDecimalPlaces>
SET FIXED ON NOTE: Setting the nDecimalPlaces to >= 15 for any work around results in an overflow error.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbCodeSnippet kbDSupport kbXBase KB247494 kbAudDeveloper |
---|
|