Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why the calculate not exact?
Message
De
07/06/2002 12:28:47
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, Chine
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Why the calculate not exact?
Divers
Thread ID:
00666025
Message ID:
00666025
Vues:
52
Hello everyone:
I have a programe , and I have setted: 'set decim to 2'.
inside the program :

local v1,v2,v3,v4,......,v19,v20
store 0 to v1,v2,v3,......v19,v20
......
v20=v1+v2+v3+v4+......+v19

why the varible 'v20' often more 0.01 or less 0.01
I have used round() ,but it failure also.
Could you give me some advice?
Thank you.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform