Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematical rounding
Message
De
01/02/2005 07:06:36
 
 
À
01/02/2005 07:00:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00982326
Message ID:
00982620
Vues:
17
>>anyone claiming 12.4 correct has lost their marbles dude.
>>
>>no mater what comes after the 4 in 12.34 it's still going to be rounded to a 3.
>>
>>the 4 part of 12.34 defines the 1st decimal number as beng closer to 3 than 4 (decimal number probably isn't the right term but you know what I mean the 1st number after the decimal point)
>
>As I understand it now, when rounding 12.345 to 1 decimal the 3 is called the least significant digit and the 4 is the first non-significant digit.
>
>>this is simple,
>>1.49 is very nearly 1.5 but it's not, it's 1.5 and therefore rounds to 1, try looking at everything after that first decimal as a whole not one by on from the right, that's madness.
>>
>>same applys here. keep your collegues away from any important programming for all of our sakes!
>
>Mmmm... let me see, how am I gonna tell them that tactfully?! ;)

You can tell them that with their way of thinking, starting with the least signficant digit, and rounding one digit at a time backwards, the real limit is not 5 (or 0.5 or 0.05), but 4.44... They in reality say that 0.444444444444444444444444 is 0, and 0.444444444444444444444445 is 1. You don't have to be a professor to understand that this is wrong.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform