Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematical rounding
Message
De
01/02/2005 07:20:34
 
 
À
31/01/2005 18:34:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00982326
Message ID:
00982624
Vues:
20
PMFJI

>There is of course yet another method of rounding, who's name eludes me so I'll call it statistical rounding, which is just like rounding off except that if the digits that you are removing are a five followed all zeros you round to the nearest even number instead of up. This balances out the small bias towards rounding up.

It's called "round to even".

Glad you mentioned that there are other things than just "economics/currencies". I'm quite surprised that no one asked Peter in what scenario the rounding takes place (although with 12.345 it really doesn't matter). What would have happened when Peter wanted to round to two decimal places <bg>.

Bruno
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform