Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRANFORM() Behavior ... changed from SP1 ???
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00616533
Message ID:
00616829
Views:
31
What does VFP 6 return on that? It looks like in allt he exapmples it returns 10.0, the documentation says that should return 10, no decimal point, nothing. I stand by the idea that the docs are plain wrong, the TRANSFORM function should not make any sort of assumption about the level of preceision of the passed value, IOW, how is it supposed to know, lacking a cFormatCode parameter, just what the intended precision of 10.00 is supposed to be? If the application required a number to be accurate to 2 decimal places, then converting 10.00 into 10 is absolutely wrong (if my high school chemistry teacher is still alive, I'm sure he would be happy to debate on this). If anything, there needs to be an additional format code to set numeric precision to handle just these cases.
Again, the second part of my reply still applies - this should have been better documented, not a surprise change.

Randy

>Try to explaind following
? Transform(10.00)
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform