Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding problem?
Message
From
20/03/2000 17:10:03
 
 
To
20/03/2000 16:47:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348122
Message ID:
00348136
Views:
20
Janet,

>The numbers are straight from the command window - not from a table. Is this normal rounding behavior that I don't know about?

Building on Nadya's idea, if you must keep the number of decimals in the original example, you can work-around it by changing your algorithm like this:
? ROUND( <b>(100*.35000000) * .01</b> * 943.0 *.100  ,2)
.

That comes out correct.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform