Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a snazzy way
Message
De
25/07/2001 09:05:13
 
 
À
25/07/2001 08:54:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534851
Message ID:
00534915
Vues:
11
Hmmm, yes I found a few of those kind of things while trying to find this solution

I also experimented with transform and Str statements but this one seems to be the best

It works as long as the number of 9's and the padl second parameter match.

Thanks Len

Will

>I've also found another little quirk in VfP6 maths handling :
>
>Both
>
>? padl(9999999/10 ^ 3,8)+'9'
>? padl(9999999/1000,8)+'9'
>
>
>prints 10000.009
>
>whereas
>
>x = 3
>? padl(9999999/10 ^ x,8)+'9'
>
>
>prints 9999.9999
>
>so be wary on using a mathmatical solution
Will Jones
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform