Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematical rounding
Message
 
 
À
31/01/2005 12:43:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00982326
Message ID:
00982615
Vues:
22
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)

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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform