Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a snazzy way
Message
From
25/07/2001 09:05:13
 
 
To
25/07/2001 08:54:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534851
Message ID:
00534915
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform