Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform() returning unexpected value
Message
 
To
27/12/2007 20:31:13
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01278000
Message ID:
01278186
Views:
22
Hi Dragan,

Thanks for explaining. I am relatively new to VFP (since VFP7) and not very well aware of its legacy. Probably I will do a push/pop SET DECIMALS to workaround that in my case!

David

>>Dear all,
>>
>>I have a question about the Transform function:
>>
>>transform(0.001,'9.999') returns '0.000'
>>
>>
>>which I expect it to return '0.001'.
>>
>>Any idea of where does it go wrong? I am using VFP9 SP2.
>
>SP1 here, and... it works fine if you Set DEcimals to 3. Now why would transform() be influenced by Set("Decimals") is beyond me. That's probably a FP2.0 bug which was later kept for traditional reasons or whatever.
Previous
Reply
Map
View

Click here to load this message in the networking platform