Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRANSFORM bug ?
Message
De
17/07/2000 13:30:13
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
17/07/2000 09:07:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00393170
Message ID:
00393401
Vues:
24
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform