Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG ? BUG ? BUG ?
Message
From
11/08/1999 12:35:21
 
 
To
11/08/1999 05:36:20
Amit Abhangrao
Charmi Software Exports
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Conferences & events
Miscellaneous
Thread ID:
00252396
Message ID:
00252606
Views:
9
Mallari --

This appears to be the result of converting decimal values which we read into binary format for calculation and conversion back. All computer languages which use a floating point format will exhibit this kind of behavior in such calculations.

A couple possible solutions:

Use the ROUND() function to the desired number of places (which can be tedious),

Use the currency data format if you are interested in 2 or 4 decimal digits of accuracy. These calculations undergo an automatic rounding in VFP.

Try the addition but prefix a $ sign -- or other currency marker. I found that the sum of the values equaled the values summed.
Previous
Reply
Map
View

Click here to load this message in the networking platform