Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRANSFORM function rounds value?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01292170
Message ID:
01292179
Views:
25
This message has been marked as the solution to the initial question of the thread.
Unfortuantelly, the TRANSFORM() function is affected by SET DECIMAL setting and it does round result if it has more decimal spaces than specified by SET DECIMAL .
lnValue = 1.98765
SET DECIMALS TO 2    && Default
? TRANSFORM(lnValue,"9.9999")
SET DECIMALS TO 4
? TRANSFORM(lnValue,"9.9999")
SET DECIMALS TO 5
? TRANSFORM(lnValue,"9.9999")
>It seems that my table values when put through the TRANSFORM() function does some rounding up. Is this true?
>
>Such as:
>
<snip>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform