Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Percentile function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00983109
Message ID:
00983387
Vues:
19
Yuri,

I know that it can be done using Excel but that is not an option in this case.

Thanks,
Mike

>As far as I know, there are some differences in the way how percentile is calculated in different products. Thus, if you wish to do it exactly "as provided in Excel", then here is the direct way to do it. Assuming you have array "atemp" defined and populated:
>
>ObjExcel=createobject("Excel.Application")
>*Define the K here....
>* k=
>?ObjExcel.WorksheetFunction.Percentile(@atemp, K)
>.....
>
>
>
>>Anybody have the code to emulate the percentile function as provided in Excel (and willing to share <g>).
>>
>>Thanks,
>>Mike
>>
>>(and yes, I do still get to do some VFP code from time to time)
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform