Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRANSFORM bug ?
Message
From
17/07/2000 13:30:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
17/07/2000 09:07:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00393170
Message ID:
00393401
Views:
18
>It happens on my system as well !*%#
>
>passing it a formatting string seems to fix it tho
>
>ie TRANSFORM(9.2,'99.99') RETURNS 9.20
>
>not much use if you don't know the type you want to pass to it in the first place (Like in my application registery!)
>
>I am just off to check my code
>
>Thanks for the tip

Though trans(9.2) does return "9.19999999999999999" (didn't count the nines), trans(9.2, "") returns " 9.20" (with leading spaces). The empty string as a picture works for other things as well - ?trans($1) goves you "$1.00", while ?trans($1,"") gives you "1.0000". Well, it may not be buggy, but it does have a set of unexplored features :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform