Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transform() returning unexpected value
Message
De
27/12/2007 20:31:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01278000
Message ID:
01278006
Vues:
17
>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.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform