Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wrong Result in simple calculation
Message
De
26/03/2002 23:15:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Wrong Result in simple calculation
Divers
Thread ID:
00637659
Message ID:
00637659
Vues:
48
Hi,

I have two calculations using the rounding function :

1 round(315*12.5010,2)
2 round(315*12.5010*1.000000,2)

the first one have the result - 3937.82 which is correct but the result of the second one is 3937.81, if I reduce one of the zero of the 1.000000 in the formula 2, it's result would be correct too, I would like to ask if anyone know why this happen ?

I have got another example :

1 round(5.00*101.3090,2) = 506.55 but
2 round(5.00*101.3090*1.000000,2) = 506.54

Thanks in advance
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform