Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transform Oddities
Message
De
04/07/2001 09:50:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/07/2001 09:12:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00526657
Message ID:
00526669
Vues:
17
If trailing zeros don't matter, use:
alltrim(str(-8.81,20,2)) && for two decimals
>Aaargh... just found a MS KB article about it..
>
>I'm not going to have to Set Compatible On am I?
>
>
>>Hello all,
>>
>>I have found an irregularity with the transform command and wonder if anyone else can come up with a solution for it.. (I remember something about this in the past but without a BUTM search, I have to ask you nice Putm's)
>>
>>Try this in the command window..
>>
>>? Transform(-8.81)
>>? Transform(-8.82)
>>
>>These 2 lines give VERY different results on 2 win 95 machines here
>>VFP6 SP4
>>
>>Also could someone give this a try in VFP7 - maybe it will give me an excuse to upgrade!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform