Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why the calculate not exact?
Message
From
07/06/2002 12:28:47
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, China
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Why the calculate not exact?
Miscellaneous
Thread ID:
00666025
Message ID:
00666025
Views:
53
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.
Next
Reply
Map
View

Click here to load this message in the networking platform