Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00681174
Message ID:
00681180
Vues:
21
Jon,

It is rounding correctly. 1.3749 is less than 1.3750, so it is rounded down.

>I found that VFP is rounding in a manner that doesn't make sense to me. Take the following example:
>
>
ROUND(1.375,2)
>will round correctly to 1.38.
>
>
ROUND(1.3749,2)
>will round to 1.37. Shouldn't the 4 be rounded up to 5 and then susbsequently 7 go up to 8? That's how I remember doing it in high school! :) It looks like the rounding is only looking 1 decimal place to the right instead of the entire expression.
>
>Any ideas??
>
>Laterness,
>Jon
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform