Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How You deal with VFP Rounding BUG
Message
 
To
22/11/2007 19:29:13
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01270811
Message ID:
01270860
Views:
23
Hi Vladimir,

>I am interesting in what is the best practice to deal with VFP rounding in calculation proble.

Actually, this has nothing to do with rounding. The problem is that 550000.815 is not a number you can store in a floating point value which uses a base of 2. That's the same as trying to display 2/3 accurately with a base of 10. You can see this without any multiplication and rounding by just printing:
? 550000.8150000000000000000000000000
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform