Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How You deal with VFP Rounding BUG
Message
From
23/11/2007 18:07:52
 
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:
01270976
Views:
19
>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
>
Ok I understand that but, try above examples or rounding problems in VB or C# and they work like they should. So something is wrong with VFP definitely.
Vladimir Martinovski
VCS Software Inc.
"May the FOX be with You"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform