Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Statistical functions in VFP6 (import)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00435549
Message ID:
00436154
Vues:
33
Nadya,

>if _tally>3
> lnMiddleRecord=(_tally/2) && Find middle record
>else
> =messagebox('Number of records is less than 3. Can not calculate median...',48)

Where did you find this restriction? My understanding is that the median of two numbers is just the arithmetic mean of those numbers - (n1+n2)/2 - and the median of a one number sample is the number itself.

Cheers,

Andrew


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform