Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform() ?
Message
From
07/12/2001 13:47:06
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00591318
Message ID:
00591330
Views:
26
>What's wrong with this (in both VFP6 and VFP7):
>
>? TRANSFORM(18.1234567,"99.9999%")
>
>it show 18.1200%
>
>Should it be 18.1234% ?
>
>TIA
>
>Jun

TRANSFORM() uses the current setting of SET DECIMALS which, by default, is 2.

If you set SET DECIMALS TO 4, you'll get the info you need.

It's quirks like that in TRANSFORM() that encourage me to use the STR() function as these environmental issues don't have an impact.

Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform